AP_Compass: remove HAL_CHIBIOS_ARCH_MINDPXV2

MinxPX is the only board using it, and it specifies everything
This commit is contained in:
Peter Barker
2026-01-20 10:44:35 +11:00
committed by Andrew Tridgell
parent e230bab457
commit d3ddac74ea
2 changed files with 9 additions and 5 deletions
+3 -4
View File
@@ -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