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:
parent
da21b48f7e
commit
a53af5277c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user