root / branches / orbit / code / behaviors / bfs_fsm / driver.c @ 582
History | View | Annotate | Download (459 Bytes)
1 |
/** driver for orbit code
|
---|---|
2 |
execute orbit behavior
|
3 |
*/
|
4 |
|
5 |
#include <dragonfly_lib.h> |
6 |
#include <wireless.h> |
7 |
#include <wl_token_ring.h> |
8 |
#include "bfs_fsm.h" |
9 |
|
10 |
|
11 |
int main(void) { |
12 |
// enable everything
|
13 |
dragonfly_init(ALL_ON); |
14 |
orb_enable(); |
15 |
orb_init(); |
16 |
orb_set_color(PURPLE); |
17 |
wl_init(); |
18 |
wl_token_ring_register(); |
19 |
wl_token_ring_join(); // join token ring
|
20 |
|
21 |
|
22 |
bfs_init(9); // set robot_id to find |
23 |
|
24 |
while(1) { |
25 |
bfs_fsm(); // do bfs
|
26 |
} |
27 |
|
28 |
return 0; |
29 |
} |