mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Commander: Improved logic for OA prearm checks.
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Julian Oes
parent
977a4c8e9b
commit
f4a4dab65a
@@ -999,9 +999,9 @@ bool prearm_check(orb_advert_t *mavlink_log_pub, const vehicle_status_flags_s &s
|
||||
}
|
||||
}
|
||||
|
||||
if (!status_flags.avoidance_system_valid) {
|
||||
if (status_flags.avoidance_system_required && !status_flags.avoidance_system_valid) {
|
||||
if (prearm_ok && reportFailures) {
|
||||
mavlink_log_critical(mavlink_log_pub, "ARMING DENIED: AVOIDANCE SYSTEM NOT READY");
|
||||
mavlink_log_critical(mavlink_log_pub, "ARMING DENIED: Avoidance system not ready");
|
||||
}
|
||||
|
||||
prearm_ok = false;
|
||||
|
||||
Reference in New Issue
Block a user