mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Compass: remove HAL_CHIBIOS_ARCH_MINDPXV2
MinxPX is the only board using it, and it specifies everything
This commit is contained in:
committed by
Andrew Tridgell
parent
e230bab457
commit
d3ddac74ea
@@ -1131,16 +1131,15 @@ void Compass::_probe_external_i2c_compasses(void)
|
||||
RETURN_IF_NO_SPACE;
|
||||
}
|
||||
|
||||
#if AP_COMPASS_INTERNAL_BUS_PROBING_ENABLED
|
||||
if (AP_BoardConfig::get_board_type() != AP_BoardConfig::PX4_BOARD_MINDPXV2 &&
|
||||
AP_BoardConfig::get_board_type() != AP_BoardConfig::PX4_BOARD_AEROFC) {
|
||||
#if AP_COMPASS_HMC5843_INTERNAL_BUS_PROBING_ENABLED
|
||||
if (AP_BoardConfig::get_board_type() != AP_BoardConfig::PX4_BOARD_AEROFC) {
|
||||
// internal i2c bus
|
||||
FOREACH_I2C_INTERNAL(i) {
|
||||
probe_i2c_dev(DRIVER_HMC5843, AP_Compass_HMC5843::probe, i, HAL_COMPASS_HMC5843_I2C_ADDR, all_external, all_external?ROTATION_ROLL_180:ROTATION_YAW_270);
|
||||
RETURN_IF_NO_SPACE;
|
||||
}
|
||||
}
|
||||
#endif // AP_COMPASS_INTERNAL_BUS_PROBING_ENABLED
|
||||
#endif // AP_COMPASS_KMC5843_INTERNAL_BUS_PROBING_ENABLED
|
||||
#endif // AP_COMPASS_HMC5843_ENABLED
|
||||
|
||||
#if AP_COMPASS_QMC5883L_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user