From 59a571d22f117d76de027ca105d95912da707ece Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 2 Feb 2016 11:51:55 +0100 Subject: [PATCH] TECS: - do not run TECS for VTO which are in rotary wing mode - reinitialise TECS the first time we start using it again --- src/lib/external_lgpl/tecs/tecs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/external_lgpl/tecs/tecs.h b/src/lib/external_lgpl/tecs/tecs.h index 3104446a15..5755c41bd2 100644 --- a/src/lib/external_lgpl/tecs/tecs.h +++ b/src/lib/external_lgpl/tecs/tecs.h @@ -153,6 +153,9 @@ public: return _spdWeight; } + // this will force TECS to reinitialize all states + void reinitialize_states() {_states_initalized = false;} + enum ECL_TECS_MODE { ECL_TECS_MODE_NORMAL = 0, ECL_TECS_MODE_UNDERSPEED,