BMP280 Code cleanup
[openXsensor.git] / openXsensor / oXs_imu.h
blob760ec13d046f10ceeaf1ea22ebe35f9ce013e7c5
1 #ifndef OXS_IMU_h
2 #define OXS_IMU_h
5 #include "Arduino.h"
6 #include "oXs_config_basic.h"
7 #include "oXs_config_advanced.h"
8 #include "oXs_config_macros.h"
9 #include "I2C.h"
10 #include "helper_3dmath.h"
13 boolean initialize_mpu() ;
14 void getEuler(float *data, Quaternion *q) ;
15 void getGravity(struct FloatVectorStruct *v, Quaternion *q) ;
16 void dmpGetYawPitchRoll(float *data, Quaternion *q, struct FloatVectorStruct *gravity) ;
17 void enable_mpu() ;
18 void disable_mpu() ;
19 void setupImu() ;
20 void gyro_data_ready_cb(void) ;
21 unsigned short inv_row_2_scale(const signed char *row) ;
22 unsigned short inv_orientation_matrix_to_scalar( const signed char *mtx) ;
23 boolean run_mpu_self_test(boolean& gyro_ok, boolean& accel_ok) ;
24 bool read6050 () ; // return a flag that is true when a new acceleration is available
25 void dump_all() ;
26 #endif // OXS_IMU_h