mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
DCM: fixed formatting
This commit is contained in:
parent
610069e729
commit
fd2cd0d1c2
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user