commander arming state machine pass checks by default

- this is needed for the unit tests
This commit is contained in:
Daniel Agar
2018-04-16 20:43:33 -04:00
parent f81a1aedcd
commit 1400652724
@@ -117,8 +117,8 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const batt
/*
* Get sensing state if necessary
*/
bool preflight_check_ret = false;
bool prearm_check_ret = false;
bool preflight_check_ret = true;
bool prearm_check_ret = true;
const bool checkSensors = !hil_enabled;
const bool checkRC = (status->rc_input_mode == vehicle_status_s::RC_IN_MODE_DEFAULT);
@@ -177,8 +177,6 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const batt
/* enforce lockdown in HIL */
if (hil_enabled) {
armed->lockdown = true;
preflight_check_ret = true;
prearm_check_ret = true;
status_flags->condition_system_sensors_initialized = true;
/* recover from a prearm fail */