Robot's source code

Dependencies:   mbed

Revision:
100:a827a645d6c2
Parent:
94:5c37bcf73d14
Parent:
93:4d5664e9188a
--- a/Odometry/Odometry2.cpp	Thu Apr 30 16:14:39 2015 +0000
+++ b/Odometry/Odometry2.cpp	Thu Apr 30 16:16:29 2015 +0000
@@ -60,7 +60,7 @@
     m_vitLeft = m_distPerTick_left*delta_left/dt;
     m_vitRight = m_distPerTick_right*delta_right/dt;
     
-    float deltaS = (m_distPerTick_left*delta_left + m_distPerTick_right*delta_right) / 2.0;
+    float deltaS = (m_distPerTick_left*delta_left + m_distPerTick_right*delta_right) / 2.0f;
     float deltaTheta = (m_distPerTick_right*delta_right - m_distPerTick_left*delta_left) / m_v;
     
     float dx = deltaS*cos(theta);
@@ -75,6 +75,3 @@
 }
 
 
-
-   
-    
\ No newline at end of file