Skip to content
Snippets Groups Projects
Commit 14006527 authored by Daniel Agar's avatar Daniel Agar
Browse files

commander arming state machine pass checks by default

 - this is needed for the unit tests
parent f81a1aed
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment