added gy80 dcm

Dependencies:   mbed DCM_AHRS_GY80 PID MMA8451Q

Fork of quadCommand by Greg Abdo

Revision:
41:40e432c5cbe6
Parent:
34:d6696dc977a2
Child:
49:f202fb0d4128
--- a/main.cpp	Mon Jun 10 01:17:58 2013 +0000
+++ b/main.cpp	Mon Jun 10 01:37:36 2013 +0000
@@ -1,18 +1,17 @@
 #include "quadCommand.h"
 #include "debug.h"
 
-#define DEBUG_ENABLE
-
 int main() 
 {
     DEBUG(pc.printf("DEBUG ENABLED\r\n");)
     Ticker motorProcess;// Control timer
     quadCommand quad;   // Create quadCommand object.
     
-    DEBUG(pc.printf("Initialized\r\n");)
-    quad.run();         // Start quadCommand running.
+    DEBUG(pc.printf("Initialized.\r\n");)
+    //Updates motors on set intervals
+    DEBUG(pc.printf("Updating motors on interval %f.\r\n", quadCommand::MOTOR_UPDATE/1000.0f);)
+    motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f);
     
-    //Updates motors on set intervals
-    motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f);
+    quad.run();         // Start quadCommand running.
 }