Statistics
| Revision:

root / trunk / code / projects / mapping / odometry / main.c @ 947

History | View | Annotate | Download (304 Bytes)

1
#include <dragonfly_lib.h>
2
#include "odometry.h"
3
#include <math.h>
4
5
int main(void)
6
{
7
        dragonfly_init(ALL_ON);
8
        odometry_init();
9
        char buf[100];
10
        while(1){
11
                sprintf(buf,"X: %ld, Y: %ld, Theta: %lf\n\r", odometry_dx(), odometry_dy(), odometry_angle());
12
                usb_puts(buf);
13
                delay_ms(500);
14
        }
15
        return 0;
16
}
17
18