This is some awesome robot code

Dependencies:   mbed-rtos mbed QEI

Fork of ICRSEurobot13 by Thomas Branch

Revision:
63:c2c6269767b8
Parent:
62:78d99b781f02
Child:
64:c979fb1cd3b5
--- a/main.cpp	Sun Apr 14 12:57:04 2013 +0000
+++ b/main.cpp	Sun Apr 14 14:32:43 2013 +0000
@@ -101,6 +101,20 @@
         Thread::wait(5000);
     }
     
+    MotorControl::set_fwdcmd(0);
+    for(float spd = 0.05; spd <= 2; spd *= 1.4){
+    
+        MotorControl::set_omegacmd(spd);
+        
+        Thread::wait(3000);
+        
+        float f = MotorControl::mfwdpowdbg;
+        float r = MotorControl::mrotpowdbg;
+        MotorControl::set_omegacmd(0);
+        printf("targetspd:%f, fwd:%f, rot:%f\r\n", spd, f, r);
+        Thread::wait(5000);
+    }
+    
     Thread::wait(osWaitForever);
    
 }