TRR2018 omar

Dependencies:   mbed

Fork of biniou by TRR 2018

Revision:
27:f8c3f1524a64
Parent:
23:04d393220daa
Child:
29:fc984fe08ca7
--- a/main.cpp	Sun Sep 16 17:11:15 2018 +0000
+++ b/main.cpp	Mon Sep 17 11:00:56 2018 +0000
@@ -13,29 +13,29 @@
     timerLoop.start();
     while (1) {
 
-        if(timerLoop.read_us()>40000) { // output every ms
+        if(timerLoop.read_us()>20000) { // output every 20 ms
             timerLoop.reset();
             timerLoop.start();
             mursUpdate();
 #ifdef DLVV
             obstacleUpdate();
 #endif
-        }
-        sectionUpdate();
-        maxSpeedUpdate();
-        throttleUpdate();
+
+            sectionUpdate();
+            maxSpeedUpdate();
+            throttleUpdate();
 
 
-        mursOutput();
+            mursOutput();
 #ifdef DLVV
-        obstacleOutput();
+            obstacleOutput();
 #endif
-        sectionOutput();
-        maxSpeedOutput();
-        throttleOutput();
-
+            sectionOutput();
+            maxSpeedOutput();
+            throttleOutput();
+        }
 #ifdef SAMPLING
-    sampleLog();
+        sampleLog();
 #endif
 
     }