From 66780762de122b1d64deae91b248435d74823f51 Mon Sep 17 00:00:00 2001 From: Ferruccio Vicari Date: Tue, 23 Jan 2024 03:03:56 +0000 Subject: [PATCH] AC_Autorotation: remove array zeroing of sink rate derivative --- libraries/AC_Autorotation/AC_Autorotation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Autorotation/AC_Autorotation.h b/libraries/AC_Autorotation/AC_Autorotation.h index 99a571ea2a1d6a..30ba4fb0dbec22 100644 --- a/libraries/AC_Autorotation/AC_Autorotation.h +++ b/libraries/AC_Autorotation/AC_Autorotation.h @@ -176,7 +176,7 @@ class AC_Autorotation float _avg_sink_deriv; // Averaged derivative of rate of descent float _avg_sink_deriv_sum; // Sum of averaged sink rate derivative int16_t _index_sink_rate; // Index for sink rate derivative rolling average - float _curr_sink_deriv[20]{}; // Array for storing sink rate derivatives + float _curr_sink_deriv[20]; // Array for storing sink rate derivatives bool _flare_complete; // Flare completed bool _flare_update_check; // Check for flare altitude updating