From f2af2b3458799c92cf9c8be8a530cf50bdc5660a Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Sun, 25 Oct 2020 20:59:27 +1100 Subject: [PATCH] AP_NavEKF3: Initialise tiltErrorVariance class variable --- libraries/AP_NavEKF3/AP_NavEKF3_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp index 0d09294880..0394f11cbe 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_core.cpp @@ -288,6 +288,7 @@ void NavEKF3_core::InitialiseVariables() baroHgtOffset = 0.0f; yawResetAngle = 0.0f; lastYawReset_ms = 0; + tiltErrorVariance = sq(M_2PI); tiltAlignComplete = false; yawAlignComplete = false; have_table_earth_field = false;