svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Revision:
4:904b737ef08a
Parent:
1:e2a6e523bf1f
Child:
17:bd6b6ac89e0e
--- a/echo.h	Sun May 07 08:37:22 2017 +0000
+++ b/echo.h	Sun May 14 11:28:29 2017 +0000
@@ -59,10 +59,10 @@
     echo_old_old_step = echo_old_step;
     echo_old_step = echo_current_step;
     echo_current_step += echo_current_dir;
-    if (echo_current_step > 36) {echo_current_step = 35 ; echo_current_dir = -1; echo_transmit(37);} 
-    if (echo_current_step < 0) {echo_current_step = 1 ; echo_current_dir = 1; echo_transmit(37);} 
+    if (echo_current_step > 36) {echo_current_step = 35 ; echo_current_dir = -1; /*echo_transmit(37);*/} 
+    if (echo_current_step < 0) {echo_current_step = 1 ; echo_current_dir = 1; /*echo_transmit(37);*/} 
     serva(echo_current_step*5-90);
-    echo_start();
+    echo_start(); //the last to exit ticker interrupt ASAP
     }
 
 bool analyze_obstacle(){