Colin Stearns / Mbed 2 deprecated qcControl

Dependencies:   mbed

Fork of dgps by Colin Stearns

Revision:
58:ea73523cf04b
Parent:
54:fc7c8b5d4d41
Child:
60:bf851bafc807
--- a/handle/mavcommands.h	Sat Apr 26 16:30:42 2014 +0000
+++ b/handle/mavcommands.h	Sat Apr 26 21:07:51 2014 +0000
@@ -98,6 +98,9 @@
     void handleNextCmd();
     void setupCmds();
     void setup(){if(!initialized){setupCmds();initialized=true;}}
-    void run(){setup();handleNextCmd();}
+    void run(){
+        setup();
+        for(int i=0;i<100;i++){handleNextCmd();wait_ms(10);}
+    }
     static MavCmd& get(){if(mavcmd==NULL){mavcmd=new MavCmd();}return *mavcmd;}
 };