mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
add missing copy of variable
This commit is contained in:
parent
9fce5aa402
commit
5eea669d62
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user