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:
- 12:15d129d681e9
- Parent:
- 11:a80e854955dc
- Child:
- 13:e5266f89898c
diff -r a80e854955dc -r 15d129d681e9 quadCommand/sensorS/sensors.cpp
--- a/quadCommand/sensorS/sensors.cpp Mon Jun 10 00:01:48 2013 +0000
+++ b/quadCommand/sensorS/sensors.cpp Mon Jun 10 00:09:59 2013 +0000
@@ -11,6 +11,7 @@
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);
}
/************************** getAbsoluteX() *******************************/
