![]() |
roneos
Operating System for the r-one robot
|
Reads bump sensor information and includes helper functions for processing this data. More...
Go to the source code of this file.
Functions | |
uint8 | bumpSensorsGetBits () |
Get bump sensor bits. More... | |
int16 | bumpSensorsGetBearing () |
Get bump sensor bearing. More... | |
uint8 | bumpSensorsWhichHit () |
Returns an integer identifying from which direction the robot was hit. More... | |
Reads bump sensor information and includes helper functions for processing this data.
int16 bumpSensorsGetBearing | ( | ) |
Get bump sensor bearing.
uint8 bumpSensorsGetBits | ( | ) |
Get bump sensor bits.
uint8 bumpSensorsWhichHit | ( | ) |
Returns an integer identifying from which direction the robot was hit.
0 - Hit from front 1 - Hit from left 2 - Hit from right 3 - Hit from behind
If the robot is not being hit, returns -1.