mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Soaring: move to airspeed_estimate with pointer
This commit is contained in:
parent
d16de83e3f
commit
850eee2f84
@ -22,7 +22,7 @@ void Variometer::update(const float polar_K, const float polar_B, const float po
|
||||
// Both filtered total energy rates and unfiltered are computed for the thermal switching logic and the EKF
|
||||
float aspd = 0;
|
||||
float roll = _ahrs.roll;
|
||||
if (!_ahrs.airspeed_estimate(&aspd)) {
|
||||
if (!_ahrs.airspeed_estimate(aspd)) {
|
||||
aspd = _aparm.airspeed_cruise_cm / 100.0f;
|
||||
}
|
||||
_aspd_filt = ASPD_FILT * aspd + (1 - ASPD_FILT) * _aspd_filt;
|
||||
|
Loading…
Reference in New Issue
Block a user