root / trunk / code / projects / mapping / odometry / odometry.h @ 890
History | View | Annotate | Download (546 Bytes)
1 |
|
---|---|
2 |
#ifndef __ODOMETRY_C__
|
3 |
#define __ODOMETRY_C__
|
4 |
|
5 |
//Odometry resolution, *64 microseconds.
|
6 |
#define ODOMETRY_CLK 1600 //= approx. 10 ms |
7 |
|
8 |
//Wheel = 2.613 in.
|
9 |
//Circumference = 208.508133 mm
|
10 |
//Distance per encoder click (circumference / 1024) = 203.621224 um.
|
11 |
//Robot width = 5.3745 in. = 136.5123 mm
|
12 |
|
13 |
#define ROBOT_WIDTH_MM 137 //mm |
14 |
#define CLICK_DISTANCE_UM 204 //um |
15 |
|
16 |
//Standard measures will be mm and us
|
17 |
|
18 |
int odometry_dx(void); |
19 |
int odometry_dy(void); |
20 |
float odometry_angle(void); |
21 |
void odometry_init(void); |
22 |
void odometry_reset(void); |
23 |
|
24 |
#endif
|