mirror of https://github.com/ArduPilot/ardupilot
Revert "AP_TECS: Convert references to AP_Airspeed."
This reverts commit 09d53eaeca
.
This commit is contained in:
parent
44037c13a1
commit
e5bd23e34a
|
@ -340,8 +340,8 @@ void AP_TECS::_update_speed(float load_factor)
|
|||
|
||||
float EAS2TAS = _ahrs.get_EAS2TAS();
|
||||
_TAS_dem = _EAS_dem * EAS2TAS;
|
||||
_TASmax = airspeed.get_airspeed_max() * EAS2TAS;
|
||||
_TASmin = airspeed.get_airspeed_min() * EAS2TAS;
|
||||
_TASmax = aparm.airspeed_max * EAS2TAS;
|
||||
_TASmin = aparm.airspeed_min * EAS2TAS;
|
||||
|
||||
if (aparm.stall_prevention) {
|
||||
// when stall prevention is active we raise the mimimum
|
||||
|
@ -368,7 +368,7 @@ void AP_TECS::_update_speed(float load_factor)
|
|||
// airspeed is not being used and set speed rate to zero
|
||||
if (!_ahrs.airspeed_sensor_enabled() || !_ahrs.airspeed_estimate(&_EAS)) {
|
||||
// If no airspeed available use average of min and max
|
||||
_EAS = 0.5f * (airspeed.get_airspeed_min() + airspeed.get_airspeed_max());
|
||||
_EAS = 0.5f * (aparm.airspeed_min.get() + (float)aparm.airspeed_max.get());
|
||||
}
|
||||
|
||||
// Implement a second order complementary filter to obtain a
|
||||
|
|
|
@ -121,7 +121,6 @@ private:
|
|||
AP_AHRS &_ahrs;
|
||||
|
||||
const AP_Vehicle::FixedWing &aparm;
|
||||
AP_Airspeed airspeed;
|
||||
|
||||
// TECS tuning parameters
|
||||
AP_Float _hgtCompFiltOmega;
|
||||
|
|
Loading…
Reference in New Issue