mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_InertialSensor: load only HIL backend for hil_mode
This commit is contained in:
parent
fec2025469
commit
8a99cab535
@ -391,6 +391,10 @@ void AP_InertialSensor::_add_backend(AP_InertialSensor_Backend *(detect)(AP_Iner
|
||||
void
|
||||
AP_InertialSensor::_detect_backends(void)
|
||||
{
|
||||
if (_hil_mode) {
|
||||
_add_backend(AP_InertialSensor_HIL::detect);
|
||||
return;
|
||||
}
|
||||
#if HAL_INS_DEFAULT == HAL_INS_HIL
|
||||
_add_backend(AP_InertialSensor_HIL::detect);
|
||||
#elif HAL_INS_DEFAULT == HAL_INS_MPU6000
|
||||
|
Loading…
Reference in New Issue
Block a user