with class
Dependencies: ISR_Mini-explorer mbed
Fork of VirtualForces by
Diff: Sonar.hpp
- Revision:
- 37:b4c45e43ad29
- Parent:
- 36:b59d56d0b3b4
- Child:
- 38:5ed7c79fb724
--- a/Sonar.hpp Sun Jun 11 22:53:59 2017 +0000 +++ b/Sonar.hpp Sun Jun 11 23:22:28 2017 +0000 @@ -10,12 +10,12 @@ float minRange;//Rmin cm float incertitudeRange;//cm float angleRange;//Omega rad - float angleFromCenter; + float angleFromOrigin; float distanceX; float distanceY; //the distance are in the world coordinates - Sonar(float anlgeFromCenter, float distanceXFromRobotCenter, float distanceYFromRobotCenter ); + Sonar(float angleFromOrigin, float distanceXFromRobotCenter, float distanceYFromRobotCenter ); float compute_probability_t(float distanceObstacleDetected, float xCell, float yCell, float xRobotWorld, float yRobotWorld, float theta);