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
1 changed files with 1 additions and 0 deletions

View File

@ -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);