Raj Patel / Mbed 2 deprecated RoboticMappingControl

Dependencies:   mbed mbed-rtos Motor LSM9DS1_Library_cal X_NUCLEO_53L0A1

Revision:
10:8f4183d640d8
Parent:
9:552805fac195
Child:
12:946f56f78d2b
--- a/main.cpp	Tue Apr 23 18:13:07 2019 +0000
+++ b/main.cpp	Tue Apr 23 18:22:16 2019 +0000
@@ -6,7 +6,6 @@
 BusOut led(LED1, LED2, LED3, LED4);
 DigitalIn pb(p23);
 
-//changed float to int due to serial restrictions
 int* obstacles = new int[360];
 int trajectoryLength = 0;
 int* trajectory = new int[0];
@@ -16,10 +15,10 @@
     DataDistributor dataDistributor;
     RobotController robotController(p21, p15, p16, p22, p18, p19, p13, p14);
 
-    //while(1) {
-        //robotController.detectObstacles();
-        //dataDistributor.transmitObstacles();
+    while(1) {
+        robotController.detectObstacles();
+        dataDistributor.transmitObstacles();
         dataDistributor.receiveTrajectory();
-        //robotController.followTrajectory();
-    //}
+        robotController.followTrajectory();
+    }
 }
\ No newline at end of file