class IMU nucleo
Dependents: Coupe-Robotique-FIP-Main
Fork of IMU_FIP by
Imu.h@2:3088586fe88c, 2015-04-10 (annotated)
- Committer:
- quentin9696
- Date:
- Fri Apr 10 16:38:46 2015 +0000
- Revision:
- 2:3088586fe88c
- Parent:
- 1:eb79df94d147
- Child:
- 3:89e327e1217f
bug solved : volatile grrr
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
quentin9696 | 0:528e23a13fb7 | 1 | #include "mbed.h" |
quentin9696 | 0:528e23a13fb7 | 2 | #include "x_cube_mems.h" |
quentin9696 | 0:528e23a13fb7 | 3 | #include "x_cube_mems_i2c.h" |
quentin9696 | 0:528e23a13fb7 | 4 | |
quentin9696 | 0:528e23a13fb7 | 5 | class Imu : public X_CUBE_MEMS { |
quentin9696 | 0:528e23a13fb7 | 6 | public: |
quentin9696 | 0:528e23a13fb7 | 7 | Imu(); |
quentin9696 | 0:528e23a13fb7 | 8 | float getHUM(); |
quentin9696 | 0:528e23a13fb7 | 9 | float getTEMP(); |
quentin9696 | 0:528e23a13fb7 | 10 | float getPRES(); |
quentin9696 | 0:528e23a13fb7 | 11 | AxesRaw_TypeDef* getMAG(); |
quentin9696 | 0:528e23a13fb7 | 12 | AxesRaw_TypeDef* getACC(); |
quentin9696 | 1:eb79df94d147 | 13 | AxesRaw_TypeDef* getGYR(); |
quentin9696 | 0:528e23a13fb7 | 14 | |
quentin9696 | 0:528e23a13fb7 | 15 | private: |
quentin9696 | 0:528e23a13fb7 | 16 | volatile float TEMPERATURE_Value_C; |
quentin9696 | 0:528e23a13fb7 | 17 | volatile float HUMIDITY_Value; |
quentin9696 | 0:528e23a13fb7 | 18 | volatile float PRESSURE_Value; |
quentin9696 | 2:3088586fe88c | 19 | AxesRaw_TypeDef *MAG_Value; |
quentin9696 | 2:3088586fe88c | 20 | AxesRaw_TypeDef *ACC_Value; |
quentin9696 | 2:3088586fe88c | 21 | AxesRaw_TypeDef *GYR_Value; |
quentin9696 | 0:528e23a13fb7 | 22 | }; |