An EKF source parameter holds a value that is not allowed
What ArduPilot says:
- Check EK3_SRCN_POSZ
- Check EK3_SRCN_YAW
- Check EK3_SRCN_VELXY
- Check EK3_SRCN_POSXY
- Check EK3_SRCN_VELZ
The EKF, ArduPilot's position and attitude estimator, is told where to take each quantity from: horizontal position (EK3_SRCn_POSXY), horizontal speed (EK3_SRCn_VELXY), height (EK3_SRCn_POSZ), vertical speed (EK3_SRCn_VELZ) and heading (EK3_SRCn_YAW), in three sets (n is 1, 2 or 3). The message names the parameter whose value does not fit that quantity. All three sets are checked, not only the one in use. The heading is always checked, the others when a position is needed.
What to do, most likely first
A parameter file from another aircraft or an older version was loaded, or the value was typed by hand.
CheckRead the named parameter and compare it with what is allowed: POSXY 0, 3, 4 or 6; VELXY 0, 3, 5, 6 or 7; POSZ 0, 1, 2, 3, 4 or 6; VELZ 0, 3 or 6; YAW 0, 1, 2, 3, 6 or 8.
FixFor an aircraft with GPS, compass and barometer use the defaults:
EK3_SRC1_POSXY3,EK3_SRC1_VELXY3,EK3_SRC1_POSZ1,EK3_SRC1_VELZ3,EK3_SRC1_YAW1.A second or third source set was filled in only in part.
CheckThe digit in the message is 2 or 3.
FixGive that set valid values too. A set you do not use can copy set 1.
Parameters to look at
| Parameter | What it is |
|---|---|
EK3_SRC1_POSXY | Position Horizontal Source (Primary) |
EK3_SRC1_VELXY | Velocity Horizontal Source |
EK3_SRC1_POSZ | Position Vertical Source |
EK3_SRC1_VELZ | Velocity Vertical Source |
EK3_SRC1_YAW | Yaw Source |
EK3_SRC2_POSXY | Position Horizontal Source (Secondary) |
Where to do it:Starting ParametersParameter Compare & Migrate
The code that sends it
Check EK3_SRCN_POSZ
libraries/AP_NavEKF/AP_NavEKF_Source.cpp AP_NavEKF_Source::pre_arm_check() · Open in ArduPilot Copter-4.7.1
Check EK3_SRCN_YAW
libraries/AP_NavEKF/AP_NavEKF_Source.cpp AP_NavEKF_Source::pre_arm_check() · Open in ArduPilot Copter-4.7.1
Check EK3_SRCN_VELXY
libraries/AP_NavEKF/AP_NavEKF_Source.cpp AP_NavEKF_Source::pre_arm_check() · Open in ArduPilot Copter-4.7.1
Check EK3_SRCN_POSXY
libraries/AP_NavEKF/AP_NavEKF_Source.cpp AP_NavEKF_Source::pre_arm_check() · Open in ArduPilot Copter-4.7.1
And 1 more messages, sent from the same places.