AP_NavEKF: Allow EK3_SRCx_POSZ to be set to 0 (NONE)

This commit is contained in:
Paul Riseborough 2023-08-20 17:29:12 +10:00 committed by Andrew Tridgell
parent 276578c509
commit b05919ea88

View File

@ -385,6 +385,7 @@ bool AP_NavEKF_Source::pre_arm_check(bool requires_position, char *failure_msg,
visualodom_required = true; visualodom_required = true;
break; break;
case SourceZ::NONE: case SourceZ::NONE:
break;
default: default:
// invalid posz value // invalid posz value
hal.util->snprintf(failure_msg, failure_msg_len, "Check EK3_SRC%d_POSZ", (int)i+1); hal.util->snprintf(failure_msg, failure_msg_len, "Check EK3_SRC%d_POSZ", (int)i+1);