Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / mapping / odometry / odometry.h @ 924

History | View | Annotate | Download (551 Bytes)

1 889 justin
2
#ifndef __ODOMETRY_C__
3
#define __ODOMETRY_C__
4
5
//Odometry resolution, *64 microseconds.
6 909 justin
//= approx. 100 ms
7 913 justin
#define ODOMETRY_CLK 255u
8 889 justin
9
//Wheel = 2.613 in.
10
//Circumference = 208.508133 mm
11
//Distance per encoder click (circumference / 1024)  = 203.621224 um.
12
//Robot width = 5.3745 in. = 136.5123 mm
13
14 913 justin
#define ROBOT_WIDTH_UM 137000  //um
15 889 justin
#define CLICK_DISTANCE_UM 204 //um
16
17
//Standard measures will be mm and us
18
19 924 justin
long odometry_dx(void);
20
long odometry_dy(void);
21 909 justin
double odometry_angle(void);
22 889 justin
void odometry_init(void);
23
void odometry_reset(void);
24
25
#endif