DCM: fixed formatting

This commit is contained in:
Andrew Tridgell 2013-04-23 08:57:33 +10:00
parent 610069e729
commit fd2cd0d1c2

View File

@ -662,9 +662,9 @@ void AP_AHRS_DCM::estimate_wind(Vector3f &velocity)
wind.z = velocitySum.z - V * fuselageDirectionSum.z;
wind *= 0.5f;
if (wind.length() < _wind.length() + 20) {
_wind = _wind * 0.95f + wind * 0.05f;
}
if (wind.length() < _wind.length() + 20) {
_wind = _wind * 0.95f + wind * 0.05f;
}
_last_wind_time = now;
} else if (now - _last_wind_time > 2000 && _airspeed && _airspeed->use()) {