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.h@4:ce6ad16337c5, 2013-06-09 (annotated)
- Committer:
- gabdo
- Date:
- Sun Jun 09 22:59:11 2013 +0000
- Revision:
- 4:ce6ad16337c5
- Parent:
- 1:9b90e7de6e09
- Child:
- 9:9e0d0ba5b6b1
None
;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabdo | 0:8681037b9a18 | 1 | /************************* quadCommand.h *********************************/ |
gabdo | 0:8681037b9a18 | 2 | /* */ |
gabdo | 0:8681037b9a18 | 3 | /*************************************************************************/ |
gabdo | 0:8681037b9a18 | 4 | |
gabdo | 0:8681037b9a18 | 5 | #include "MMA8451Q.h" |
gabdo | 0:8681037b9a18 | 6 | |
gabdo | 0:8681037b9a18 | 7 | #ifndef SENSORS_H |
gabdo | 0:8681037b9a18 | 8 | #define SENSORS_H |
gabdo | 0:8681037b9a18 | 9 | |
gabdo | 0:8681037b9a18 | 10 | #define MMA8451_I2C_ADDRESS (0x1d<<1) |
gabdo | 0:8681037b9a18 | 11 | const PinName ACCSDA = PTE25; |
gabdo | 0:8681037b9a18 | 12 | const PinName ACCSCL = PTE24; |
gabdo | 0:8681037b9a18 | 13 | |
gabdo | 0:8681037b9a18 | 14 | class sensors |
gabdo | 0:8681037b9a18 | 15 | { |
gabdo | 0:8681037b9a18 | 16 | public: |
gabdo | 0:8681037b9a18 | 17 | sensors(); |
gabdo | 4:ce6ad16337c5 | 18 | float getAbsoluteX(); |
gabdo | 4:ce6ad16337c5 | 19 | float getAbsoluteY(); |
gabdo | 0:8681037b9a18 | 20 | |
gabdo | 0:8681037b9a18 | 21 | private: |
gabdo | 0:8681037b9a18 | 22 | MMA8451Q *acc; |
gabdo | 0:8681037b9a18 | 23 | }; |
gabdo | 0:8681037b9a18 | 24 | #endif |