root / trunk / code / projects / diagnostic_station / station / dump_robot.c @ 1244
History | View | Annotate | Download (402 Bytes)
1 |
#include "dump_robot.h" |
---|---|
2 |
|
3 |
#include <dragonfly_lib.h> |
4 |
|
5 |
#include "global.h" |
6 |
#include "comm_robot.h" |
7 |
|
8 |
|
9 |
void dump_robot_encoders (void) |
10 |
{ |
11 |
int16_t left, right; |
12 |
char c;
|
13 |
|
14 |
// TODO implement resetting the encoders (r key, for example)
|
15 |
while (usb_getc_nb (&c)==-1) |
16 |
{ |
17 |
robot_read_encoders (&left, &right); |
18 |
usb_puti (left); |
19 |
usb_puts (" ");
|
20 |
usb_puti (right); |
21 |
usb_puts (NL); |
22 |
} |
23 |
} |