Revision 1260
implemented bom
comm_robot.c | ||
---|---|---|
193 | 193 |
|
194 | 194 |
bool robot_read_bom (uint8_t num, uint16_t *value) |
195 | 195 |
{ |
196 |
*value=0; |
|
197 |
// FIXME implement |
|
198 |
return true; |
|
196 |
send_request_packet(station_robot_read_bom, &num, 1); |
|
197 |
|
|
198 |
// Now the received data is in received_buffer/received_length |
|
199 |
if(received_length >= 2) |
|
200 |
{ |
|
201 |
*value = WORD(received_buffer[0], received_buffer[1]); |
|
202 |
return true; |
|
203 |
} |
|
204 |
else |
|
205 |
{ |
|
206 |
return false; |
|
207 |
} |
|
208 |
|
|
199 | 209 |
} |
200 | 210 |
|
201 | 211 |
bool robot_read_rangefinder (uint8_t num, uint16_t *value) |
... | ... | |
212 | 222 |
{ |
213 | 223 |
return false; |
214 | 224 |
} |
215 |
return true; |
|
216 | 225 |
} |
217 | 226 |
|
218 | 227 |
|
Also available in: Unified diff