robot

Dependencies:   FastPWM3 mbed

Revision:
223:b986e7cee521
Parent:
215:7aa534d8ec4e
Child:
228:8a14f1da2121
--- a/main.cpp	Tue Oct 02 06:21:44 2018 +0000
+++ b/main.cpp	Tue Oct 02 07:12:01 2018 +0000
@@ -10,6 +10,7 @@
 #include "ThrottleMapper.h"
 #include "Calibration.h"
 #include "Filter.h"
+#include "LedBlinker.h"
 
 #include "BREMSStructs.h"
 #include "BREMSConfig.h"
@@ -42,7 +43,8 @@
         slow_loop();
     }
     loop_counter++;
-    
+    io.blink->update();
+        
     /*update position, sin, cos*/
     foc.p = io.pos->GetElecPosition() - _POS_OFFSET;
     float sin_p = sinf(foc.p);
@@ -180,7 +182,7 @@
 
     BREMSInit(&io, &read, &foc, &control, false);
     io.pc->attach(rxCallback);
-    
+        
     for (;;) {
         io.logger->flush();
     }