Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (369 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
        int angle;
9
        while(1){
10
                usb_puts("X: ");
11
                usb_puti(odometry_dx());        
12
                usb_puts(" Y: ");
13
                usb_puti(odometry_dy());        
14
                usb_puts(" Theta: ");
15
                angle = (int)(odometry_angle()*150.0);        
16
                usb_puti(angle);        
17
                usb_puts("\n\r");
18
                delay_ms(500);
19
        }
20
        return 0;
21
}
22

    
23