root / branches / lemmings / code / behaviors / lemmings / driver.c @ 232
History | View | Annotate | Download (483 Bytes)
1 |
/** driver for lemmings code
|
---|---|
2 |
continually execute lemmings behavior
|
3 |
*/
|
4 |
|
5 |
#include <dragonfly_lib.h> |
6 |
#include <wireless.h> |
7 |
#include "lemmings.h" |
8 |
|
9 |
/* ORB COLORS
|
10 |
RED: light blue
|
11 |
ORANGE: light blue
|
12 |
YELLOW: light blue
|
13 |
GREEN:
|
14 |
BLUE:
|
15 |
*/
|
16 |
|
17 |
int main(void) { |
18 |
dragonfly_init(ALL_ON); |
19 |
wl_init(); |
20 |
wl_token_ring_register(); |
21 |
wl_token_ring_join(); // join token ring
|
22 |
|
23 |
lemmings_init(); |
24 |
|
25 |
while(1) { |
26 |
wl_do(); |
27 |
lemmings_FSM(); |
28 |
} |
29 |
|
30 |
return 0; |
31 |
} |