class IMU nucleo
Dependents: Coupe-Robotique-FIP-Main
Fork of IMU_FIP by
Imu.h
- Committer:
- quentin9696
- Date:
- 2015-04-10
- Revision:
- 3:89e327e1217f
- Parent:
- 2:3088586fe88c
File content as of revision 3:89e327e1217f:
#include "mbed.h" #include "x_cube_mems.h" #include "x_cube_mems_i2c.h" #include "struct_IMU.h" class Imu : public X_CUBE_MEMS { public: /* Constructor */ Imu(); /* public attribute */ /* Get public method */ Data_IMU * getData(); /* set public method */ /* Raw data */ void setRawHUM(); void setRawTEMP(); void setRawPRES(); void setRawMAG(); void setRawACC(); void setRawGYR(); /* other method */ void refresh(int i); // 0 = Raw , 1 = with offset Data_IMU * getOffset(); void setOffset(); private: /* Attribute */ /* Raw value */ Data_IMU rawData; /* Offset */ Data_IMU offsetData; };