Robot's source code
Dependencies: mbed
Diff: Asserv_Plan_B/planB.cpp
- Revision:
- 93:4d5664e9188a
- Parent:
- 86:2fbe5db2627f
- Child:
- 100:a827a645d6c2
- Child:
- 105:6da275b01395
- Child:
- 106:05096985d1b2
--- a/Asserv_Plan_B/planB.cpp Wed Apr 29 16:13:53 2015 +0000 +++ b/Asserv_Plan_B/planB.cpp Thu Apr 30 15:55:09 2015 +0000 @@ -52,8 +52,8 @@ { float erreur_theta = thetaGoal-m_odometry.getTheta(); - if(erreur_theta <= PI) erreur_theta += 2.0*PI; - if(erreur_theta >= PI) erreur_theta -= 2.0*PI; + if(erreur_theta <= PI) erreur_theta += 2.0f*PI; + if(erreur_theta >= PI) erreur_theta -= 2.0f*PI; //logger.printf("%.2f\r\n", erreur_theta*180/PI);