Revision 710
Tweaked vision and various colonet fixes
colonet_wireless.cpp | ||
---|---|---|
226 | 226 |
|
227 | 227 |
//TODO: fill in the doxygen comments |
228 | 228 |
/** |
229 |
* @brief
|
|
229 |
* @brief |
|
230 | 230 |
* |
231 | 231 |
* @return Void |
232 | 232 |
*/ |
... | ... | |
236 | 236 |
|
237 | 237 |
//TODO: fill in the doxygen comments |
238 | 238 |
/** |
239 |
* @brief
|
|
239 |
* @brief |
|
240 | 240 |
* |
241 | 241 |
* @param frame |
242 | 242 |
* @param received |
... | ... | |
252 | 252 |
/** |
253 | 253 |
* @brief When a packet is received via wireless, the data is passed to this function |
254 | 254 |
* |
255 |
* @param type
|
|
255 |
* @param type |
|
256 | 256 |
* @param source The robot the packet came from |
257 | 257 |
* @param data The data the robot sent |
258 | 258 |
* @param len The length of the data |
... | ... | |
280 | 280 |
//ask the position monitor for where that robot is. |
281 | 281 |
int ret = pm->getRobotPosition(source_robot, &robot_x, &robot_y); |
282 | 282 |
if (ret != 0 && num_robots != 1) { |
283 |
fprintf(stderr, "Robot %d requested position, but its position is not known.\n", source_robot); |
|
283 |
//DEBUG |
|
284 |
//fprintf(stderr, "Robot %d requested position, but its position is not known.\n", source_robot); |
|
284 | 285 |
|
285 | 286 |
if (colonet_wl_send(-1, source_robot, COLONET_COMMAND, SERVER_REPORT_ROBOT_LOST, NULL) != 0) { |
286 | 287 |
fprintf(stderr, "colonet_wl_send failed!\n"); |
... | ... | |
319 | 320 |
|
320 | 321 |
//TODO: fill in the doxygen comments |
321 | 322 |
/** |
322 |
* @brief
|
|
323 |
* @brief |
|
323 | 324 |
* |
324 | 325 |
* @return Void |
325 | 326 |
*/ |
... | ... | |
357 | 358 |
return NULL; |
358 | 359 |
} |
359 | 360 |
|
360 |
/**
|
|
361 |
/** |
|
361 | 362 |
* @brief |
362 | 363 |
* |
363 | 364 |
* @param pkt Packet to be logged |
Also available in: Unified diff