Project

General

Profile

Revision 680

reorganized colonet robot code significantly; virtual walls basically work

View differences:

robot_slave.c
14 14

  
15 15
int behavior_status;
16 16

  
17
static void step() {}
18

  
17 19
int main(void) {
18 20
  dragonfly_init(ALL_ON);
19 21

  
......
28 30
  if (wl_token_ring_join() == 0) {
29 31
    orb_set_color(GREEN);
30 32

  
31
    while(1) {
32
      wl_do();
33
    }
33
    colonet_run(step);
34 34
  } else {
35 35
    orb_set_color(RED);
36 36
  }
37 37

  
38
  usb_puts("Failed to join token ring.\n");
39

  
38 40
  while(1);
39 41

  
40 42
  return 0;

Also available in: Unified diff