AP_InertialSensor: assume accel cals are stored for sitl-on-hw

Same as for SITL - they don't need to actually be in storage to be valid
This commit is contained in:
Peter Barker 2022-03-11 11:12:29 +11:00 committed by Peter Barker
parent da21b48f7e
commit a53af5277c

View File

@ -746,7 +746,7 @@ bool AP_InertialSensor::register_accel(uint8_t &instance, uint16_t raw_sample_ra
_accel_id[_accel_count].set((int32_t) id);
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || (CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && AP_SIM_ENABLED)
// assume this is the same sensor and save its ID to allow seamless
// transition from when we didn't have the IDs.
_accel_id_ok[_accel_count] = true;