AP_TECS: fixed warning

This commit is contained in:
Andrew Tridgell 2015-01-01 15:14:48 +11:00
parent f8bce994b5
commit 4e5510c99e

View File

@ -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;