Revision 627
checking for error from vision function in server
vision_driver.c | ||
---|---|---|
21 | 21 |
VisionPosition* positions; |
22 | 22 |
int num_positions = vision_get_robot_positions(&positions); |
23 | 23 |
|
24 |
if (num_positions == -1) { |
|
25 |
fprintf(stderr, "vision_get_robot_positions failed.\n"); |
|
26 |
return 1; |
|
27 |
} |
|
28 |
|
|
24 | 29 |
printf("Got %d positions.\n", num_positions); |
25 | 30 |
|
26 | 31 |
int i; |
Also available in: Unified diff