self balancing robot
Dependencies: LPS22HB LSM6DSL LSM303AGR HTS221
Dependents: HelloWorld_IKS01A2 test
Diff: XNucleoIKS01A2.cpp
- Revision:
- 13:138a7a28bd21
- Parent:
- 6:671fd10a51b7
--- a/XNucleoIKS01A2.cpp Thu Sep 07 14:47:05 2017 +0000 +++ b/XNucleoIKS01A2.cpp Wed Sep 27 15:47:14 2017 +0000 @@ -48,11 +48,11 @@ * @brief Constructor */ XNucleoIKS01A2::XNucleoIKS01A2(DevI2C *ext_i2c, PinName int1, PinName int2) : dev_i2c(ext_i2c), - ht_sensor(new HTS221Sensor(*dev_i2c)), - magnetometer(new LSM303AGRMagSensor(*dev_i2c)), - accelerometer(new LSM303AGRAccSensor(*dev_i2c)), - pt_sensor(new LPS22HBSensor(*dev_i2c)), - acc_gyro(new LSM6DSLSensor(*dev_i2c, int1, int2)) + ht_sensor(new HTS221Sensor(dev_i2c)), + magnetometer(new LSM303AGRMagSensor(dev_i2c)), + accelerometer(new LSM303AGRAccSensor(dev_i2c)), + pt_sensor(new LPS22HBSensor(dev_i2c)), + acc_gyro(new LSM6DSLSensor(dev_i2c, LSM6DSL_ACC_GYRO_I2C_ADDRESS_HIGH, int1, int2)) { ht_sensor->init(NULL); magnetometer->init(NULL);