mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +08:00
Commander: Respect position circuit breaker
This ensures that commander respects the position check circuit breaker and allows arming without position.
This commit is contained in:
committed by
Daniel Agar
parent
382e0cbaec
commit
87f98f096f
@@ -94,7 +94,7 @@ bool PreFlightCheck::preArmCheck(orb_advert_t *mavlink_log_pub, const vehicle_st
|
||||
}
|
||||
}
|
||||
|
||||
if (arm_requirements.global_position) {
|
||||
if (arm_requirements.global_position && !status_flags.circuit_breaker_engaged_posfailure_check) {
|
||||
|
||||
if (!status_flags.condition_global_position_valid) {
|
||||
if (prearm_ok) {
|
||||
|
||||
Reference in New Issue
Block a user