From 0c15624a0cd8e918f49953cdf54e4a8507d58423 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Thu, 24 Jun 2021 16:37:56 +1000 Subject: [PATCH] EKF: Fix clang-tidy complaint --- EKF/drag_fusion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EKF/drag_fusion.cpp b/EKF/drag_fusion.cpp index acf72b69a6..89d1c4a380 100644 --- a/EKF/drag_fusion.cpp +++ b/EKF/drag_fusion.cpp @@ -97,7 +97,7 @@ void Ekf::fuseDrag() // Drag is modelled as an arbitrary combination of bluff body drag that proportional to // equivalent airspeed squared, and rotor momentum drag that is proportional to true airspeed // parallel to the rotor disc and mass flow through the rotor disc. - float pred_acc; // predicted drag acceleration + float pred_acc = 0.0f; // predicted drag acceleration if (axis_index == 0) { float Kacc; // Derivative of specific force wrt airspeed if (using_mcoef && using_bcoef_x) {