Revision 120
Seems to work until we get to seeking, where there may be issues with the motors.
wl_token_ring.c | ||
---|---|---|
496 | 496 |
WL_DEBUG_PRINT("Passing the token to robot "); |
497 | 497 |
WL_DEBUG_PRINT_INT(buf[0]); |
498 | 498 |
WL_DEBUG_PRINT(".\r\n"); |
499 |
usb_puts("token passed\n"); |
|
499 | 500 |
wl_send_global_packet(WL_TOKEN_RING_GROUP, WL_TOKEN_PASS, |
500 | 501 |
buf, packetSize, 3); |
501 | 502 |
|
... | ... | |
566 | 567 |
} |
567 | 568 |
|
568 | 569 |
WL_DEBUG_PRINT("Our BOM has been flashed.\r\n"); |
570 |
usb_puts("bom on sent\n"); |
|
569 | 571 |
wl_send_global_packet(WL_TOKEN_RING_GROUP, WL_TOKEN_BOM_ON, |
570 | 572 |
NULL, 0, 0); |
571 | 573 |
|
... | ... | |
752 | 754 |
i++; |
753 | 755 |
if (i == sensor_matrix_get_size(sensorMatrix)) |
754 | 756 |
i = -1; |
757 |
iteratorCount = i; |
|
755 | 758 |
} |
756 | 759 |
|
757 | 760 |
/** |
... | ... | |
765 | 768 |
**/ |
766 | 769 |
int wl_token_iterator_has_next(void) |
767 | 770 |
{ |
768 |
return iteratorCount == -1;
|
|
771 |
return iteratorCount != -1;
|
|
769 | 772 |
} |
770 | 773 |
|
771 | 774 |
/** |
Also available in: Unified diff