Robot's source code
Dependencies: mbed
Diff: Odometry/Odometry2.cpp
- Revision:
- 94:5c37bcf73d14
- Parent:
- 85:8e95432d99d3
- Child:
- 100:a827a645d6c2
--- a/Odometry/Odometry2.cpp Fri Apr 24 11:12:44 2015 +0000 +++ b/Odometry/Odometry2.cpp Thu Apr 30 16:03:55 2015 +0000 @@ -23,7 +23,6 @@ m_pulses_left = qei_left->getPulses(); m_pulses_right = qei_right->getPulses(); - // Vitesse du moteur gauche et droit m_vitLeft = 0; m_vitRight = 0; @@ -58,9 +57,6 @@ int delta_right = m_qei_right->getPulses() - m_pulses_right; m_pulses_right = m_qei_right->getPulses(); - m_distLeft = m_pulses_left*m_distPerTick_left; - m_distRight = m_pulses_right*m_distPerTick_right; - m_vitLeft = m_distPerTick_left*delta_left/dt; m_vitRight = m_distPerTick_right*delta_right/dt;