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
quadCommand/sensorS/sensors.cpp
- Committer:
- gabdo
- Date:
- 2013-06-09
- Revision:
- 4:ce6ad16337c5
- Parent:
- 1:9b90e7de6e09
- Child:
- 9:9e0d0ba5b6b1
File content as of revision 4:ce6ad16337c5:
/************************ quadCommand.cpp ********************************/ /* */ /*************************************************************************/ #include "sensors.h" sensors::sensors() { acc = new MMA8451Q( ACCSDA, ACCSCL, MMA8451_I2C_ADDRESS); } float sensors::getAbsoluteX() { return (acc->getAccX(); } float sensors::getAbsoluteY() { return (acc->getAccY(); }