root / trunk / code / projects / colonet / utilities / robot_slave / robot_slave.c @ 13
History | View | Annotate | Download (477 Bytes)
1 |
/**
|
---|---|
2 |
* Eugene Marinelli
|
3 |
* 4/5/07
|
4 |
*
|
5 |
* Robot slave program -- just listens for packets
|
6 |
*/
|
7 |
|
8 |
#include "dragonfly_lib.h" |
9 |
#include "wl_adhoc.h" |
10 |
#include <stdio.h> |
11 |
#include <string.h> |
12 |
|
13 |
int main(void) |
14 |
{ |
15 |
orb_init(); |
16 |
orb_enable(); |
17 |
usb_init(); |
18 |
xbee_init(); |
19 |
wl_init(); |
20 |
motors_init(); |
21 |
analog_init(); |
22 |
|
23 |
orb_set_color(GREEN); |
24 |
fprintf(usb_fd, "test ");
|
25 |
/*
|
26 |
UCSR1B |= _BV(RXCIE);
|
27 |
sei();
|
28 |
*/
|
29 |
|
30 |
colonet_set_id(0);
|
31 |
|
32 |
while (1) { |
33 |
parse_buffer(); |
34 |
} |
35 |
|
36 |
return 0; |
37 |
} |