Robot's source code

Dependencies:   mbed

Revision:
25:c5773b021bb0
Parent:
0:41149573d577
diff -r 3c0422e1ebd6 -r c5773b021bb0 Odometry/Odometry.cpp
--- a/Odometry/Odometry.cpp	Thu Jan 15 15:58:25 2015 +0000
+++ b/Odometry/Odometry.cpp	Tue Jan 20 14:34:23 2015 +0000
@@ -57,8 +57,6 @@
 
 void Odometry::update()
 {
-    DigitalOut myled(LED1);
-    myled = 1;
     int delta_left = m_qei_left->getPulses() - m_pulses_left;
     m_pulses_left = m_qei_left->getPulses();
     int delta_right = m_qei_right->getPulses() - m_pulses_right;
@@ -70,7 +68,6 @@
     x += deltaS*cos(theta);
     y += deltaS*sin(theta);
     theta += deltaTheta;
-    myled = 0;
 }