mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_TECS: fixed warning
This commit is contained in:
parent
f8bce994b5
commit
4e5510c99e
@ -372,7 +372,6 @@ void AP_TECS::_update_height_demand(void)
|
||||
{
|
||||
// Apply 2 point moving average to demanded height
|
||||
// This is required because height demand is only updated at 5Hz
|
||||
float hgt_dem_orig = _hgt_dem;
|
||||
_hgt_dem = 0.5f * (_hgt_dem + _hgt_dem_in_old);
|
||||
_hgt_dem_in_old = _hgt_dem;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user