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/behaviors/Odometry.h
4 4
#include "../Behavior.h"
5 5
#include "../Sensors.h"
6 6
#include "messages/ScoutPosition.h"
7

  
7
#include "../helper_classes/ScoutPosition.h"
8 8

  
9 9
#define WHEEL_RADIUS  .2
10 10
#define WHEEL_CIRCUM  (2*M_PI*WHEEL_RADIUS)
......
12 12
#define ENCODER_COUNT (2*WHEEL_RADIUS*350*M_PI/WHEEL_BASE)
13 13
#define DIST_PER_TICK (WHEEL_CIRCUM/ENCODER_COUNT)
14 14

  
15
typedef struct{
16
  float x;
17
  float y;
18
  float theta;
19
} pos;
20

  
21 15
class Odometry : Behavior{
22 16

  
23 17
  public:

Also available in: Unified diff