Enable pre-arm checks in HIL modes

by airframe parameters HIL mode will still disable:
 - usb check
 - power checks
 - safety switch
This commit is contained in:
Nicolas MARTIN
2021-02-23 17:28:08 +01:00
committed by Lorenz Meier
parent b4b424bf7d
commit 66beffa2f3
5 changed files with 37 additions and 1 deletions
@@ -173,7 +173,7 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const safe
// Do not perform pre-arm checks if coming from in air restore
// Allow if vehicle_status_s::HIL_STATE_ON
if (status->arming_state != vehicle_status_s::ARMING_STATE_IN_AIR_RESTORE && !hil_enabled) {
if (status->arming_state != vehicle_status_s::ARMING_STATE_IN_AIR_RESTORE) {
bool prearm_check_ret = true;