diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index f9c17dd5f1..c4b9ffe781 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -513,7 +513,7 @@ void Compass::_detect_backends(void) AP_Compass_HMC5843::name, true); // internal i2c bus 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); // lis3mdl