Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (280 Bytes)

1
#include <dragonfly_lib.h>
2
#include "odometry.h"
3

    
4
int main(void)
5
{
6
        dragonfly_init(ALL_ON);
7
        odometry_init();
8
        char buf[100];
9
        while(1){
10
                sprintf(buf,"X: %i, Y: %i, Theta: %f\n\r",odometry_dx(),odometry_dy(),odometry_angle());
11
                usb_puts(buf);
12
                delay_ms(500);
13
        }
14
        return 0;
15
}
16

    
17