root / trunk / code / projects / colonet / utilities / robot_slave / robot_slave.c @ 334
History | View | Annotate | Download (470 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 <colonet_dragonfly.h> |
10 |
#include <wireless.h> |
11 |
#include <serial.h> |
12 |
#include <stdio.h> |
13 |
|
14 |
int main(void) { |
15 |
dragonfly_init(ALL_ON); |
16 |
|
17 |
orb_set_color(RED); |
18 |
usb_puts("calling wl_init\n");
|
19 |
|
20 |
wl_init(); |
21 |
colonet_init(); |
22 |
|
23 |
|
24 |
//orb_set_color(YELLOW);
|
25 |
orb_set_color(GREEN); |
26 |
usb_puts("test!\n");
|
27 |
|
28 |
while(1) { |
29 |
wl_do(); |
30 |
} |
31 |
|
32 |
return 0; |
33 |
} |