Project

General

Profile

Revision 175

robot actually does stuff. Moves, but GUI control is off.

View differences:

Command.cpp
145 145
  return 0;
146 146
}
147 147

  
148
int Command::parse_send_to_robot(int number_tokens, char tokens[MAX_TOKENS][MAX_TOKEN_SIZE], int pool_index) {
148
int Command::parse_send_to_robot(int number_tokens,
149
                                 char tokens[MAX_TOKENS][MAX_TOKEN_SIZE],
150
                                 int pool_index) {
149 151
  int i;
150 152
  unsigned char int_tokens[MAX_TOKENS];
151 153
  int number_int_tokens = number_tokens;
......
170 172
  }
171 173

  
172 174
  // Send packet to robot
173
  fprintf(stderr, "Calling colonet_wl_send(%d, %d, %d, arguments)\n", int_tokens[0], int_tokens[1], int_tokens[2]);
174
  colonet_wl_send(pool_index, int_tokens[0], (ColonetMessageType)int_tokens[1], int_tokens[2], arguments);
175
  fprintf(stderr, "Calling colonet_wl_send(%d, %d, %d, arguments)\n",
176
          int_tokens[0], int_tokens[1], int_tokens[2]);
177
  colonet_wl_send((short)pool_index, int_tokens[0],
178
                  (ColonetMessageType)int_tokens[1], int_tokens[2], arguments);
175 179

  
176 180
  return 0;
177 181
}

Also available in: Unified diff