mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_NavEKF3: Fix GPS < 3D empty PreArm: msg-as EKF2
This commit is contained in:
parent
1c816b1fe1
commit
f21e4d833c
@ -409,6 +409,9 @@ bool NavEKF3_core::InitialiseFilterBootstrap(void)
|
|||||||
{
|
{
|
||||||
// If we are a plane and don't have GPS lock then don't initialise
|
// If we are a plane and don't have GPS lock then don't initialise
|
||||||
if (assume_zero_sideslip() && AP::gps().status() < AP_GPS::GPS_OK_FIX_3D) {
|
if (assume_zero_sideslip() && AP::gps().status() < AP_GPS::GPS_OK_FIX_3D) {
|
||||||
|
hal.util->snprintf(prearm_fail_string,
|
||||||
|
sizeof(prearm_fail_string),
|
||||||
|
"EKF3 init failure: No GPS lock");
|
||||||
statesInitialised = false;
|
statesInitialised = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user