AP_Compass: fixed orientation of internal i2c compass for FMUv1

thanks to Peter for noticing
This commit is contained in:
Andrew Tridgell 2016-11-28 13:01:43 +11:00
parent 515ceb3ccd
commit 28b3de91cf

View File

@ -513,7 +513,7 @@ void Compass::_detect_backends(void)
AP_Compass_HMC5843::name, true); AP_Compass_HMC5843::name, true);
// internal i2c bus // internal i2c bus
ADD_BACKEND(AP_Compass_HMC5843::probe(*this, hal.i2c_mgr->get_device(0, HAL_COMPASS_HMC5843_I2C_ADDR), ADD_BACKEND(AP_Compass_HMC5843::probe(*this, hal.i2c_mgr->get_device(0, HAL_COMPASS_HMC5843_I2C_ADDR),
both_i2c_external, both_i2c_external?ROTATION_ROLL_180:ROTATION_NONE), both_i2c_external, both_i2c_external?ROTATION_ROLL_180:ROTATION_YAW_270),
AP_Compass_HMC5843::name, both_i2c_external); AP_Compass_HMC5843::name, both_i2c_external);
// lis3mdl // lis3mdl