aboutsummaryrefslogtreecommitdiff
path: root/src/lib/external_lgpl/tecs/tecs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/external_lgpl/tecs/tecs.cpp')
-rw-r--r--src/lib/external_lgpl/tecs/tecs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/external_lgpl/tecs/tecs.cpp b/src/lib/external_lgpl/tecs/tecs.cpp
index 51a621f62..baf893dd2 100644
--- a/src/lib/external_lgpl/tecs/tecs.cpp
+++ b/src/lib/external_lgpl/tecs/tecs.cpp
@@ -231,7 +231,7 @@ void TECS::_update_height_demand(float demand, float state)
_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
+ _hgt_rate_dem = (_hgt_dem_adj-state)*0.1f; //xxx: parameter
// Limit height rate of change
if (_hgt_rate_dem > _maxClimbRate) {
_hgt_rate_dem = _maxClimbRate;