This lib was build for reading the 3 IMU unit sensors of Altimu10v4 board (https://www.pololu.com/product/2470).
Diff: ALTIMU.h
- Revision:
- 1:8cc36ccb8d58
- Parent:
- 0:08c9e51e6fd6
diff -r 08c9e51e6fd6 -r 8cc36ccb8d58 ALTIMU.h --- a/ALTIMU.h Mon Oct 15 02:14:19 2018 +0000 +++ b/ALTIMU.h Mon Oct 15 05:26:28 2018 +0000 @@ -4,7 +4,7 @@ #define LSM303_ADDR 0x3A #define L3GD20_ADDR 0xD6 -#define LPS25H_ADDR 0x5D +#define LPS25H_ADDR (0x5d << 1) class Altimu { @@ -31,8 +31,8 @@ * @param ax,ay,az is the accelerometer 3d vector, written by the function * @param mx,my,mz is the magnetometer 3d vector, written by the function */ - bool read_LSM303D(float *ax, float *ay, float *az, float *mx, float *my, float *mz); - bool read_L3GD20(float *gx, float *gy, float *gz); + void read_LSM303D(float *ax, float *ay, float *az, float *mx, float *my, float *mz); + void read_L3GD20(float *gx, float *gy, float *gz); void read_LPS25H(float *press, float *alt); private: