Revision 768
Colonet recharge hack works
Command.cpp | ||
---|---|---|
184 | 184 |
int cmd = atoi(tokens[3]); |
185 | 185 |
int bot = atoi(tokens[1]); |
186 | 186 |
if (cmd == 96) { |
187 |
wl_set_channel(0xE); |
|
187 | 188 |
wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, bot, 0); |
188 |
printf("Sent recharge request to %d\n", bot); |
|
189 |
printf("Sent recharge request to %d on channel 0xE\n", bot); |
|
190 |
wl_set_channel(0xC); |
|
189 | 191 |
return 0; |
190 | 192 |
} |
191 | 193 |
if (cmd == 97) { |
194 |
wl_set_channel(0xE); |
|
192 | 195 |
wl_send_robot_to_robot_global_packet(3, 10, NULL, 0, bot, 0); |
193 | 196 |
printf("Sent recharge stop request to %d\n", bot); |
197 |
wl_set_channel(0xC); |
|
194 | 198 |
return 0; |
195 | 199 |
} |
196 | 200 |
/* END OF HACK */ |
Also available in: Unified diff