EKF: Fix clang-tidy complaint

This commit is contained in:
Paul Riseborough
2021-06-24 16:37:56 +10:00
committed by Mathieu Bresciani
parent 33bf4e0303
commit 0c15624a0c
+1 -1
View File
@@ -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) {