mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 17:38:53 +08:00
TECS: remove ununsed getSteRate()
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -240,8 +240,6 @@ void TECSControl::initialize(const Setpoint &setpoint, const Input &input, Param
|
||||
|
||||
_throttle_setpoint = _calcThrottleControlOutput(limit, ste_rate, param, flag);
|
||||
|
||||
_ste_rate = ste_rate.estimate;
|
||||
|
||||
// Debug output
|
||||
_debug_output.total_energy_rate_estimate = ste_rate.estimate;
|
||||
_debug_output.total_energy_rate_sp = ste_rate.setpoint;
|
||||
@@ -502,7 +500,6 @@ void TECSControl::_calcThrottleControl(float dt, const SpecificEnergyRates &spec
|
||||
}
|
||||
|
||||
_throttle_setpoint = constrain(throttle_setpoint, param.throttle_min, param.throttle_max);
|
||||
_ste_rate = ste_rate.estimate;
|
||||
|
||||
// Debug output
|
||||
_debug_output.total_energy_rate_estimate = ste_rate.estimate;
|
||||
|
||||
@@ -313,12 +313,6 @@ public:
|
||||
* @return THe commanded pitch angle in [rad].
|
||||
*/
|
||||
float getPitchSetpoint() const {return _pitch_setpoint;};
|
||||
/**
|
||||
* @brief Get specific total energy rate.
|
||||
*
|
||||
* @return the total specific energy rate in [m²/s³].
|
||||
*/
|
||||
float getSteRate() const {return _ste_rate;};
|
||||
/**
|
||||
* @brief Get the Debug Output
|
||||
*
|
||||
@@ -535,7 +529,6 @@ private:
|
||||
float _pitch_setpoint{0.0f}; ///< Controlled pitch setpoint [rad].
|
||||
float _throttle_setpoint{0.0f}; ///< Controlled throttle setpoint [0,1].
|
||||
float _ratio_undersped{0.0f}; ///< A continuous representation of how "undersped" the TAS is [0,1]
|
||||
float _ste_rate{0.0f}; ///< Specific total energy rate [m²/s³].
|
||||
};
|
||||
|
||||
class TECS
|
||||
|
||||
Reference in New Issue
Block a user