This lib was build for reading the 3 IMU unit sensors of Altimu10v4 board (https://www.pololu.com/product/2470).
Diff: ALTIMU.cpp
- Revision:
- 3:3613e9a0edb1
- Parent:
- 2:3e874281c0f0
- Child:
- 4:d141a3e5531e
--- a/ALTIMU.cpp Tue Oct 16 00:16:05 2018 +0000 +++ b/ALTIMU.cpp Tue Nov 06 16:41:50 2018 +0000 @@ -10,14 +10,12 @@ { // Setting I2C operation frequency. _ALTIMU.frequency(200000); - // L3GD20 configuration. // DRDY_HL (DRDY active high);I2C_dis = (I2C & SPI enable); SW = (Normal Mode); Low_ODR = (Low speed disable). write_reg(L3GD20_ADDR,0x39,0x00); // DR = 01 (200 Hz ODR); BW = 10 (50 Hz bandwidth); PD = 1 (normal mode); Zen = Yen = Xen = 1 (all axes enabled). write_reg(L3GD20_ADDR,0x20,0x5F); //Setting CTRL_REG1 // End L3GD20 configuration. - // LSM303 configuration // Acell configuration // 50 Hz X/Y/Z axis enable. @@ -29,7 +27,6 @@ // End LSM303 configuration. // LPS25H configuration - //write_reg(LPS25H_ADDR, 0x10, 0x05); //write_reg(LPS25H_ADDR, 0x2e, 0xdf); //write_reg(LPS25H_ADDR, 0x21, 0x40);