Revision 584
added a define value for the change in direction used by the fsm.
code worked in my trail w/ robot 1 as the decoy, robo 7 as the driver
decoy.c | ||
---|---|---|
15 | 15 |
orb_init(); |
16 | 16 |
orb_set_color(PURPLE); |
17 | 17 |
wl_init(); |
18 |
wl_set_channel("O"); |
|
18 | 19 |
wl_token_ring_register(); |
19 | 20 |
wl_token_ring_join(); // join token ring |
20 | 21 |
usb_init(); |
21 | 22 |
usb_puts("start"); |
22 | 23 |
usb_puti(wl_get_xbee_id()); |
23 | 24 |
usb_puts("end"); |
25 |
|
|
24 | 26 |
|
25 | 27 |
|
26 | 28 |
while(1) { |
Also available in: Unified diff