Revision 120
Seems to work until we get to seeking, where there may be issues with the motors.
wl_token_ring.c | ||
---|---|---|
238 | 238 |
switch (type) |
239 | 239 |
{ |
240 | 240 |
case WL_TOKEN_PASS: |
241 |
usb_puts("received token pass from robot\n"); |
|
241 | 242 |
if (length < 1) |
242 | 243 |
{ |
243 | 244 |
WL_DEBUG_PRINT("Malformed Token Pass packet received.\r\n"); |
... | ... | |
246 | 247 |
wl_token_pass_receive(source, packet[0], packet + 1, length - 1); |
247 | 248 |
break; |
248 | 249 |
case WL_TOKEN_BOM_ON: |
250 |
usb_puts("received bom on from robot\n"); |
|
249 | 251 |
//add the robot to the sensor matrix if it is not already there |
250 | 252 |
wl_token_bom_on_receive(source); |
251 | 253 |
break; |
Also available in: Unified diff