From b05919ea884fdb6723e1bc8986712e0dc01d378d Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Sun, 20 Aug 2023 17:29:12 +1000 Subject: [PATCH] AP_NavEKF: Allow EK3_SRCx_POSZ to be set to 0 (NONE) --- libraries/AP_NavEKF/AP_NavEKF_Source.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_NavEKF/AP_NavEKF_Source.cpp b/libraries/AP_NavEKF/AP_NavEKF_Source.cpp index c4992dd0a7..633ee47b34 100644 --- a/libraries/AP_NavEKF/AP_NavEKF_Source.cpp +++ b/libraries/AP_NavEKF/AP_NavEKF_Source.cpp @@ -385,6 +385,7 @@ bool AP_NavEKF_Source::pre_arm_check(bool requires_position, char *failure_msg, visualodom_required = true; break; case SourceZ::NONE: + break; default: // invalid posz value hal.util->snprintf(failure_msg, failure_msg_len, "Check EK3_SRC%d_POSZ", (int)i+1);