test morning
Dependencies: ISR_Mini-explorer mbed
Fork of roboticLab_withclass_3_July by
Diff: Sonar.hpp
- Revision:
- 3:37345c109dfc
- Parent:
- 0:9f7ee7ed13e4
diff -r 11cd5173aa36 -r 37345c109dfc Sonar.hpp --- a/Sonar.hpp Wed Jul 05 08:56:12 2017 +0000 +++ b/Sonar.hpp Thu Jul 06 11:36:18 2017 +0000 @@ -16,7 +16,9 @@ //the distance are in the world coordinates Sonar(float angleFromCenter, float distanceXFromRobotCenter, float distanceYFromRobotCenter ); - + + void setMaxRange(float newMaxRange); + float compute_probability_t(float distanceObstacleDetected, float xCell, float yCell, float xRobotWorld, float yRobotWorld, float theta); //return distance sonar to cell if in range, -1 if not