From a536e3dfe2fba7795f543c2c82e1da10880d904c Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Wed, 6 Dec 2023 17:03:47 +0100 Subject: [PATCH] TECS: init control params to reasonable values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The control params (eg min/max pitch) are used before they are correctly set by TECS::update(). While this is an issue we should fix, it also doesn't hurt to set them to more reasobale values (eg 30° limit). Signed-off-by: Silvan Fuhrer --- src/lib/tecs/TECS.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/tecs/TECS.hpp b/src/lib/tecs/TECS.hpp index 1848a8765b..0d15b8a6c4 100644 --- a/src/lib/tecs/TECS.hpp +++ b/src/lib/tecs/TECS.hpp @@ -699,9 +699,9 @@ private: .max_climb_rate = 5.0f, .vert_accel_limit = 0.0f, .equivalent_airspeed_trim = 15.0f, - .tas_min = 3.0f, - .pitch_max = 5.0f, - .pitch_min = -5.0f, + .tas_min = 10.0f, + .pitch_max = 0.5f, + .pitch_min = -0.5f, .throttle_trim = 0.0f, .throttle_trim_adjusted = 0.f, .throttle_max = 1.0f,