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@22:2aa22b4f49d6, 2013-06-10 (annotated)
- Committer:
- gabdo
- Date:
- Mon Jun 10 00:26:49 2013 +0000
- Revision:
- 22:2aa22b4f49d6
- Parent:
- 11:a80e854955dc
- Child:
- 24:87d325eab299
Updated
;
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 | 22:2aa22b4f49d6 | 4 | #include "quadCommand.h" |
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 | 11:a80e854955dc | 10 | Ticker sensorProcess; |
gabdo | 11:a80e854955dc | 11 | |
gabdo | 0:8681037b9a18 | 12 | class sensors |
gabdo | 0:8681037b9a18 | 13 | { |
gabdo | 0:8681037b9a18 | 14 | public: |
gabdo | 0:8681037b9a18 | 15 | sensors(); |
gabdo | 11:a80e854955dc | 16 | void sendData(); |
gabdo | 9:9e0d0ba5b6b1 | 17 | float getAbsoluteX(); // Get the value off level in the X directoin. |
gabdo | 9:9e0d0ba5b6b1 | 18 | float getAbsoluteY(); // Get the value off level in the Y directoin. |
gabdo | 0:8681037b9a18 | 19 | |
gabdo | 0:8681037b9a18 | 20 | private: |
gabdo | 9:9e0d0ba5b6b1 | 21 | MMA8451Q *acc; // Pointer to the acceleromi |
gabdo | 0:8681037b9a18 | 22 | }; |
gabdo | 0:8681037b9a18 | 23 | #endif |