diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-10-27 22:03:49 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-10-27 22:03:49 +0100 |
commit | 5eea669d62b8a6a85b79c8ad3b5b8c08bb54987f (patch) | |
tree | c9c15c11972cd8c2739c4bfa8657f7c84aee3ab8 /src | |
parent | 9fce5aa40226d4018794b7520759a6960965ce78 (diff) | |
download | px4-firmware-5eea669d62b8a6a85b79c8ad3b5b8c08bb54987f.tar.gz px4-firmware-5eea669d62b8a6a85b79c8ad3b5b8c08bb54987f.tar.bz2 px4-firmware-5eea669d62b8a6a85b79c8ad3b5b8c08bb54987f.zip |
add missing copy of variable
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/external_lgpl/tecs/tecs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/external_lgpl/tecs/tecs.cpp b/src/lib/external_lgpl/tecs/tecs.cpp index af596dc5e..51a621f62 100644 --- a/src/lib/external_lgpl/tecs/tecs.cpp +++ b/src/lib/external_lgpl/tecs/tecs.cpp @@ -229,6 +229,7 @@ void TECS::_update_height_demand(float demand, float state) // // _hgt_rate_dem); _hgt_dem_adj = 0.05f * demand + 0.95f * _hgt_dem_adj_last; + _hgt_dem_adj_last = _hgt_dem_adj; _hgt_rate_dem = (demand-state)*0.1f; //xxx: parameter // Limit height rate of change |