mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
commander: fix prearm flag to preflightCheck
This was inverted, i.e. set to false in most cases, whereas it should be true. As a consequence, both powerCheck and airspeed.confidence checks were not executed.
This commit is contained in:
@@ -154,7 +154,8 @@ transition_result_t arming_state_transition(vehicle_status_s *status, const safe
|
||||
if ((last_preflight_check == 0) || (hrt_elapsed_time(&last_preflight_check) > 1000 * 1000)) {
|
||||
|
||||
status_flags->condition_system_sensors_initialized = PreFlightCheck::preflightCheck(mavlink_log_pub, *status,
|
||||
*status_flags, arm_requirements.global_position, false, false, time_since_boot);
|
||||
*status_flags, arm_requirements.global_position, false, status->arming_state != vehicle_status_s::ARMING_STATE_ARMED,
|
||||
time_since_boot);
|
||||
|
||||
last_preflight_check = hrt_absolute_time();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user