root / trunk / code / behaviors / formation_control / Circle / Code / beacon / beacon_robot.c @ 1507
History | View | Annotate | Download (411 Bytes)
1 |
#include <dragonfly_lib.h> |
---|---|
2 |
|
3 |
int main(void) |
4 |
{ |
5 |
|
6 |
/* initialize components, set wireless channel */
|
7 |
dragonfly_init(ALL_ON); |
8 |
|
9 |
/* Turn the beacon on */
|
10 |
bom_on(); |
11 |
|
12 |
/* Oscillate the orbs to remind you that your robot is on.
|
13 |
* We don't want to waste batteries if we can avoid it. */
|
14 |
while (1) { |
15 |
orbs_set_color(GREEN, BLUE); |
16 |
delay_ms(1000);
|
17 |
|
18 |
orbs_set_color(BLUE, GREEN); |
19 |
delay_ms(1000);
|
20 |
} |
21 |
|
22 |
return 0; |
23 |
} |