AHRS

Dependencies:   Eigen

Dependents:   IndNav_QK3_T265

Revision:
25:fe14dbcef82d
Parent:
4:3c21fb0c9e84
--- a/LSM9DS1_i2c.h	Wed Nov 13 11:40:46 2019 +0000
+++ b/LSM9DS1_i2c.h	Mon Jan 06 12:49:38 2020 +0000
@@ -77,7 +77,7 @@
     *              If IMU_MODE_SPI, this is the cs pin of the magnetometer (CS_M)
     
     */
-    LSM9DS1(PinName sda, PinName scl, uint8_t xgAddr, uint8_t mAddr);
+    LSM9DS1(I2C &);
     //LSM9DS1(interface_mode interface, uint8_t xgAddr, uint8_t mAddr);
     //LSM9DS1();
        
@@ -555,7 +555,7 @@
     uint8_t I2CreadBytes(uint8_t address, uint8_t subAddress, uint8_t * dest, uint8_t count);
     
 private:
-    I2C i2c;
+    I2C &i2c;
 };
 
 #endif // SFE_LSM9DS1_H //