Revision 645
Wireless commands to request charge and to depart station now work (don't know what was wrong). Demo is
possible...just need charge boards to work.
test.c | ||
---|---|---|
18 | 18 |
printf("Wireless initialized.\n"); |
19 | 19 |
printf("Packet groups initialized.\n"); |
20 | 20 |
|
21 |
if (c == 'g') |
|
21 |
if (c == 'g') { //command robot to requet charge
|
|
22 | 22 |
wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, robot, 0); |
23 |
if (c == 'd') |
|
23 |
} |
|
24 |
if (c == 'd') { // command robot to depart station |
|
24 | 25 |
wl_send_robot_to_robot_global_packet(3, 10, NULL, 0, robot, 0); |
25 |
|
|
26 |
} |
|
26 | 27 |
wl_terminate(); |
27 | 28 |
|
28 | 29 |
return 0; |
Also available in: Unified diff