Controlor for Humanoid. Walking trajectory generator, sensor reflection etc.

Dependencies:   Adafruit-PWM-Servo-Driver MPU6050 RS300 mbed

Revision:
23:0927e605af4b
Parent:
22:bf5aa20b9df0
--- a/main.cpp	Fri Sep 06 08:36:21 2013 +0000
+++ b/main.cpp	Fri Nov 22 00:30:42 2013 +0000
@@ -2,17 +2,24 @@
 #include "mbed.h"
 #include "Controlor.h"
 #include "PWM.h"
+//#include "rtos.h"
 
 uint16_t data[0x2000] __attribute__((section("AHBSRAM1"))); //motion data area
 
 DigitalOut led1(LED1);
 
+Ticker tick;
+
 int main(void)
 {
     Controlor controlor(data);
     
+    tick.attach(&controlor, &Controlor::control, 0.01);
+    
     while (1) {
-        controlor.control();
-        wait(0.005);
+        //controlor.control();
+        //wait(0.01);
+        //Thread::wait(5);
+        //led1 = !led1;
     }
-}
\ No newline at end of file
+}