AP_Compass: disable esoteric compass drivers on FMUv2
This commit is contained in:
parent
3f38b8c945
commit
64a8f00a77
@ -517,6 +517,7 @@ void Compass::_detect_backends(void)
|
|||||||
both_i2c_external, both_i2c_external?ROTATION_ROLL_180:ROTATION_YAW_270),
|
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);
|
||||||
|
|
||||||
|
#if !HAL_MINIMIZE_FEATURES
|
||||||
#if 0
|
#if 0
|
||||||
// lis3mdl - this is disabled for now due to an errata on pixhawk2 GPS unit, pending investigation
|
// lis3mdl - this is disabled for now due to an errata on pixhawk2 GPS unit, pending investigation
|
||||||
ADD_BACKEND(AP_Compass_LIS3MDL::probe(*this, hal.i2c_mgr->get_device(1, HAL_COMPASS_LIS3MDL_I2C_ADDR),
|
ADD_BACKEND(AP_Compass_LIS3MDL::probe(*this, hal.i2c_mgr->get_device(1, HAL_COMPASS_LIS3MDL_I2C_ADDR),
|
||||||
@ -534,6 +535,7 @@ void Compass::_detect_backends(void)
|
|||||||
ADD_BACKEND(AP_Compass_AK09916::probe(*this, hal.i2c_mgr->get_device(0, HAL_COMPASS_AK09916_I2C_ADDR),
|
ADD_BACKEND(AP_Compass_AK09916::probe(*this, hal.i2c_mgr->get_device(0, HAL_COMPASS_AK09916_I2C_ADDR),
|
||||||
both_i2c_external, both_i2c_external?ROTATION_YAW_270:ROTATION_NONE),
|
both_i2c_external, both_i2c_external?ROTATION_YAW_270:ROTATION_NONE),
|
||||||
AP_Compass_AK09916::name, both_i2c_external);
|
AP_Compass_AK09916::name, both_i2c_external);
|
||||||
|
#endif // HAL_MINIMIZE_FEATURES
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user