class IMU nucleo

Dependents:   Coupe-Robotique-FIP-Main

Fork of IMU_FIP by Robotique FIP

Committer:
quentin9696
Date:
Thu May 21 11:21:58 2015 +0000
Revision:
5:e2e603447679
Parent:
3:89e327e1217f

        

Who changed what in which revision?

UserRevisionLine numberNew 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 3:89e327e1217f 4 #include "struct_IMU.h"
quentin9696 0:528e23a13fb7 5
quentin9696 0:528e23a13fb7 6 class Imu : public X_CUBE_MEMS {
quentin9696 0:528e23a13fb7 7 public:
quentin9696 3:89e327e1217f 8
quentin9696 3:89e327e1217f 9 /* Constructor */
quentin9696 0:528e23a13fb7 10 Imu();
quentin9696 3:89e327e1217f 11
quentin9696 3:89e327e1217f 12 /* public attribute */
quentin9696 3:89e327e1217f 13
quentin9696 3:89e327e1217f 14
quentin9696 3:89e327e1217f 15 /* Get public method */
quentin9696 3:89e327e1217f 16 Data_IMU * getData();
quentin9696 3:89e327e1217f 17
quentin9696 3:89e327e1217f 18 /* set public method */
quentin9696 3:89e327e1217f 19 /* Raw data */
quentin9696 3:89e327e1217f 20 void setRawHUM();
quentin9696 3:89e327e1217f 21 void setRawTEMP();
quentin9696 3:89e327e1217f 22 void setRawPRES();
quentin9696 3:89e327e1217f 23 void setRawMAG();
quentin9696 3:89e327e1217f 24 void setRawACC();
quentin9696 3:89e327e1217f 25 void setRawGYR();
quentin9696 3:89e327e1217f 26
quentin9696 3:89e327e1217f 27 /* other method */
quentin9696 3:89e327e1217f 28
quentin9696 3:89e327e1217f 29 void refresh(int i); // 0 = Raw , 1 = with offset
quentin9696 3:89e327e1217f 30 Data_IMU * getOffset();
quentin9696 3:89e327e1217f 31 void setOffset();
quentin9696 0:528e23a13fb7 32
quentin9696 0:528e23a13fb7 33 private:
quentin9696 3:89e327e1217f 34
quentin9696 3:89e327e1217f 35 /* Attribute */
quentin9696 3:89e327e1217f 36
quentin9696 3:89e327e1217f 37 /* Raw value */
quentin9696 3:89e327e1217f 38 Data_IMU rawData;
quentin9696 3:89e327e1217f 39
quentin9696 3:89e327e1217f 40 /* Offset */
quentin9696 3:89e327e1217f 41 Data_IMU offsetData;
quentin9696 0:528e23a13fb7 42 };