added gy80 dcm
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/quadCommand.cpp
- Revision:
- 44:a30ba531f614
- Parent:
- 43:e2fc699e8e8c
- Child:
- 45:088885f4a13d
--- a/quadCommand/quadCommand.cpp Mon Jun 10 01:46:43 2013 +0000 +++ b/quadCommand/quadCommand.cpp Mon Jun 10 01:52:57 2013 +0000 @@ -13,9 +13,8 @@ pidRoll(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD), pidYaw(1.5,0.1,1.20,DEFAULT_WINDUP_GUARD) { - Ticker sensorProcess; //sensorProcess.attach( this,&quadCommand::sendTelemetry, 2 ); - sensorProcess.attach( this, &quadCommand::updateCurrent, .002 ); + sensorProcess.attach( this, &quadCommand::updateCurrent, SENSSORDELAY ); myCom = new com( TXPIN, RXPIN ); // Setup com object. world = new sensors(); // Setup the sensors.