Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/sensorS/sensors.cpp
- Revision:
- 36:342213315dce
- Parent:
- 22:2aa22b4f49d6
- Child:
- 37:8114f9c7c40b
--- a/quadCommand/sensorS/sensors.cpp Mon Jun 10 00:42:18 2013 +0000 +++ b/quadCommand/sensorS/sensors.cpp Mon Jun 10 00:46:13 2013 +0000 @@ -9,8 +9,9 @@ sensors::sensors() { - acc = new MMA8451Q( ACCSDA, ACCSCL, MMA8451_I2C_ADDRESS); - //sensorProcess.attach( this, &com::callback );motorProcess.attach(&quad, &quadCommand::updateMotors, quadCommand::MOTOR_UPDATE/1000.0f); + Ticker sensorProcess; + acc = new MMA8451Q( ACCSDA, ACCSCL, MMA8451_I2C_ADDRESS); + sensorProcess.attach( this, &sensors::sendData, 2 ); } /************************** getAbsoluteX() *******************************/