QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Files at this revision

API Documentation at this revision

Comitter:
dylanembed123
Date:
Tue Apr 22 14:18:30 2014 +0000
Parent:
24:e65416d6de22
Child:
26:06f1c9d70e9f
Commit message:
Add mav test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mavcommands.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Apr 22 14:15:27 2014 +0000
+++ b/main.cpp	Tue Apr 22 14:18:30 2014 +0000
@@ -110,9 +110,13 @@
 {
 
     // Start Mav test
+    /*
     USB::getSerial().printf("Wait 20\n");
-    wait(20);
-    
+    wait(20);    
+    while(true){
+        MavCmd::get().run();
+    }
+    */
     // End mav test
     
     //handlers
--- a/mavcommands.h	Tue Apr 22 14:15:27 2014 +0000
+++ b/mavcommands.h	Tue Apr 22 14:18:30 2014 +0000
@@ -76,6 +76,6 @@
     void handleNextCmd();
     void setupCmds();
     void setup(){if(!initialized){setupCmds();initialized=true;}}
-    void run(){handleNextCmd();}
+    void run(){setup();handleNextCmd();}
     static MavCmd& get(){if(mavcmd==NULL){mavcmd=new MavCmd();}return *mavcmd;}
 };