svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Revision:
19:2fe650d29823
Parent:
17:bd6b6ac89e0e
Child:
22:14e85f2068c7
--- a/echo.h	Sun Feb 10 12:05:16 2019 +0000
+++ b/echo.h	Sun Feb 24 11:02:56 2019 +0000
@@ -42,9 +42,9 @@
 void   echo_transmit(int steps_number)  { //printf is not recommended for interrupts
     int tmstep;
     wifi.putc(0xff); //sync symbol
-    //for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle_glaz[tmstep] < 500) ? obstacle_glaz[tmstep]/2 : 250);}
+    for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle_glaz[tmstep] < 500) ? obstacle_glaz[tmstep]/2 : 250);}
     //for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle_echo[tmstep] < 500) ? obstacle_echo[tmstep]/2 : 250);}
-    for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle[tmstep] < 500) ? obstacle[tmstep]/2 : 250);}
+    //for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((obstacle[tmstep] < 500) ? obstacle[tmstep]/2 : 250);}
     for(tmstep = 0; tmstep < steps_number; tmstep ++){wifi.putc((corrected_obstacle[tmstep] < 500) ? corrected_obstacle[tmstep]/2 : 250);}
     }
 
@@ -83,5 +83,5 @@
     }
     glaz.setDistanceMode(VL53L1X::Long);
     glaz.setMeasurementTimingBudget(50000);
-    glaz.startContinuous(50);
+    //glaz.startContinuous(50);
     }
\ No newline at end of file