Project

General

Profile

Revision bb64f5e5

IDbb64f5e5de169ff810c3db30f6fca00db59b8d09
Parent 259aaff8
Child f3bfb5b5

Added by Priya about 11 years ago

Added a ScoutPosition struct with some functions and Changed the odometry code to use it.

View differences:

scout/libscout/src/test_behaviors/Odometry_new.h
6 6
#include "../Behavior.h"
7 7
#include "../Sensors.h"
8 8
#include "messages/ScoutPosition.h"
9
#include "../helper_classes/ScoutPosition.h"
9 10

  
10 11
#define WHEEL_R 0.025 //this is a virtual unit now... use real values
11 12
#define WHEEL_B 0.115  // this is a virtual unit now... use real values
......
14 15
#define LOOP_RATE 10 // Hz, integrate 10 times per second
15 16
#define LOOP_TIME (1.0/LOOP_RATE) // secs
16 17

  
17
typedef struct{
18
  float x;
19
  float y;
20
  float theta;
21
} posi;
22

  
23 18
class Odometry_new : Behavior{
24 19

  
25 20
  public:
......
55 50
    int motor_br_ticks_last;
56 51
    int scout_theta;
57 52

  
58
    posi* scout_pos;
53
    pos* scout_pos;
59 54

  
60 55
};
61 56

  

Also available in: Unified diff