added gy80 dcm
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/quadCommand.cpp
- Revision:
- 26:826448361267
- Parent:
- 18:c7df2edd73f0
- Child:
- 34:d6696dc977a2
--- a/quadCommand/quadCommand.cpp Mon Jun 10 00:36:55 2013 +0000 +++ b/quadCommand/quadCommand.cpp Mon Jun 10 00:45:56 2013 +0000 @@ -22,20 +22,20 @@ } /******************************* run() ***********************************/ -/* */ +/* Called from main */ /*************************************************************************/ void quadCommand::run() { while(1) - { - if( myCom->isData() ) + { // Checks if there's data from serial + if( myCom->isData() ) rxInput(); } } /***************************** rxInput() *********************************/ -/* */ +/*Call from run() */ /*************************************************************************/ void quadCommand::rxInput() @@ -58,7 +58,7 @@ } /*************************** updateMotors() ******************************/ -/* */ +/*Called in main by motorprocess */ /*************************************************************************/ void quadCommand::updateMotors() {