From 7bd944ef3eb1e46e4b5ccd16b6a8a6f0994d1c84 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 17 Jun 2021 19:38:16 +1000 Subject: [PATCH] AP_NavEKF3: Clean up initialisation of boolean array --- libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp b/libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp index 0e9d06e824..8e6d02ba56 100644 --- a/libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp +++ b/libraries/AP_NavEKF3/AP_NavEKF3_PosVelFusion.cpp @@ -595,7 +595,7 @@ void NavEKF3_core::FuseVelPosNED() bool hgtCheckPassed = false; // boolean true if height measurements have passed innovation consistency check // declare variables used to control access to arrays - bool fuseData[6] = {false,false,false,false,false,false}; + bool fuseData[6] {}; uint8_t stateIndex; uint8_t obsIndex;