mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -04:00
AP_Compass: probe for RM3100
This commit is contained in:
parent
318c0a958d
commit
d9edd3c8b5
@ -782,6 +782,17 @@ void Compass::_probe_external_i2c_compasses(void)
|
||||
ADD_BACKEND(DRIVER_IST8308, AP_Compass_IST8308::probe(GET_I2C_DEVICE(i, HAL_COMPASS_IST8308_I2C_ADDR),
|
||||
true, ROTATION_NONE));
|
||||
}
|
||||
|
||||
// external i2c bus
|
||||
FOREACH_I2C_EXTERNAL(i) {
|
||||
ADD_BACKEND(DRIVER_RM3100, AP_Compass_RM3100::probe(GET_I2C_DEVICE(i, HAL_COMPASS_RM3100_I2C_ADDR),
|
||||
true, ROTATION_NONE));
|
||||
}
|
||||
FOREACH_I2C_INTERNAL(i) {
|
||||
ADD_BACKEND(DRIVER_RM3100, AP_Compass_RM3100::probe(GET_I2C_DEVICE(i, HAL_COMPASS_RM3100_I2C_ADDR),
|
||||
all_external, ROTATION_NONE));
|
||||
}
|
||||
|
||||
#endif // HAL_MINIMIZE_FEATURES
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user