mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Compass: fixed orientation of internal i2c compass for FMUv1
thanks to Peter for noticing
This commit is contained in:
parent
515ceb3ccd
commit
28b3de91cf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user