added gy80 dcm

Dependencies:   mbed DCM_AHRS_GY80 PID MMA8451Q

Fork of quadCommand by Greg Abdo

Files at this revision

API Documentation at this revision

Comitter:
oprospero
Date:
Mon Jun 10 00:56:40 2013 +0000
Parent:
27:19c9c63bf272
Parent:
28:c6f6d6034d22
Child:
31:42688840106f
Commit message:
fix

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jun 10 00:52:41 2013 +0000
+++ b/main.cpp	Mon Jun 10 00:56:40 2013 +0000
@@ -1,9 +1,13 @@
 #include "quadCommand.h"
+#include "debug.h"
 
 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.
     
     //Updates motors on set intervals
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/quadCommand/debug.h	Mon Jun 10 00:56:40 2013 +0000
@@ -0,0 +1,13 @@
+#ifndef __DEBUG__
+#define __DEBUG__
+
+#include "mbed.h"
+
+#ifdef DEBUG_ENABLE
+#define DEBUG(out) out
+Serial pc(USBTX, USBRX); // tx, rx
+#else
+#define DEBUG(s)
+#endif
+
+#endif
\ No newline at end of file