Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Revision 25:b7f861fc8ddd, committed 2014-04-22
- 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;} };