Project

General

Profile

Revision 768

Colonet recharge hack works

View differences:

trunk/code/projects/colonet/server/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 */
trunk/code/projects/colonet/client/Colonet.java
840 840
			  if (selectedBot >= 0)
841 841
			    csi.sendRecharge(selectedBot);
842 842
			  else
843
          csi.sendRecharge(4);
843
          csi.sendRecharge(2);
844 844
			} else if (source == btnCommand_StopCharging) {
845 845
			  if (selectedBot >= 0)
846 846
			    csi.sendRechargeStop(selectedBot);
847 847
			  else
848
          csi.sendRechargeStop(4);
848
          csi.sendRechargeStop(2);
849 849
			} else if (source == btnAddTask) { // Queue Management
850 850
				taskAddWindow.prompt();
851 851
			} else if (source == btnRemoveTask) {

Also available in: Unified diff