code for the speed robot

Dependencies:   MPU6050-DMP mbed PololuQTRSensors vl53l0x

Revision:
4:538efc40388e
Parent:
3:9b2f15b0d47b
Child:
5:bb0763ae79ff
--- a/tof.h	Mon Sep 30 10:19:31 2019 +0000
+++ b/tof.h	Mon Sep 30 10:33:12 2019 +0000
@@ -7,18 +7,28 @@
     xshut2 = 0;
     xshut3 = 0;
 
+    xshut1 = 0;
+    xshut2 = 0;
     xshut3 = 1;
     wait(0.01);
     Sensor3.setAddress(Sensor3_newAddress);
 
+    xshut1 = 0;
     xshut2 = 1;
+    xshut3 = 0;
     wait(0.01);
     Sensor2.setAddress(Sensor2_newAddress);
 
     xshut1 = 1;
+    xshut2 = 0;
+    xshut3 = 0;
     wait(0.01);
     Sensor1.setAddress(Sensor1_newAddress);
 
+    xshut1 = 0;
+    xshut2 = 0;
+    xshut3 = 0;
+    
     if (Sensor1.init())
     {
         PrintSerial("Sensor 1 : Configured");