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.h
- Revision:
- 0:8681037b9a18
- Child:
- 1:9b90e7de6e09
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/quadCommand/sensorS/sensors.h Sun Jun 09 22:13:59 2013 +0000
@@ -0,0 +1,24 @@
+/************************* quadCommand.h *********************************/
+/* */
+/*************************************************************************/
+
+#include "MMA8451Q.h"
+
+#ifndef SENSORS_H
+#define SENSORS_H
+
+#define MMA8451_I2C_ADDRESS (0x1d<<1)
+const PinName ACCSDA = PTE25;
+const PinName ACCSCL = PTE24;
+
+class sensors
+{
+ public:
+ sensors();
+ short getAbsoluteX();
+ short getAbsoluteY();
+
+ private:
+ MMA8451Q *acc;
+};
+#endif
\ No newline at end of file
