class IMU nucleo

Dependents:   Coupe-Robotique-FIP-Main

Fork of IMU_FIP by Robotique FIP

Imu.h

Committer:
quentin9696
Date:
2015-05-21
Revision:
5:e2e603447679
Parent:
3:89e327e1217f

File content as of revision 5:e2e603447679:

#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;
};