Dependencies:   MODSERIAL mbed Servo

Fork of juggler_mbed_position_control by Robert Katzschmann

Revision:
2:b4aef96e0cd7
Parent:
1:153ce28ac5ed
Child:
3:dcaf3c1e4ed6
--- a/main.cpp	Sun Jan 15 02:43:07 2017 +0000
+++ b/main.cpp	Sun Jan 15 03:14:29 2017 +0000
@@ -55,12 +55,13 @@
     }*/
     //int i = 0;
     readyToSendNext = false;
-    aTimer.attach(&timerFcn, 0.002); // the address of the function to be attached (flip) and the interval (2 seconds)
+    //aTimer.attach(&timerFcn, 0.002); // the address of the function to be attached (flip) and the interval (2 seconds)
 
     while(1) {
         if(serialComm.checkIfNewMessage()) 
         {
             fReceived = serialComm.getFloat();
+            readyToSendNext = true;
         }
 //        
         if(readyToSendNext == true)