From 28db47480df1d1bd25fd10ba334d23c420469c1e Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Fri, 10 Mar 2023 11:21:55 +0100 Subject: [PATCH] TECS: remove ununsed getSteRate() Signed-off-by: Silvan Fuhrer --- src/lib/tecs/TECS.cpp | 3 --- src/lib/tecs/TECS.hpp | 7 ------- 2 files changed, 10 deletions(-) diff --git a/src/lib/tecs/TECS.cpp b/src/lib/tecs/TECS.cpp index 1a6f7348e5..b67b8b2082 100644 --- a/src/lib/tecs/TECS.cpp +++ b/src/lib/tecs/TECS.cpp @@ -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; diff --git a/src/lib/tecs/TECS.hpp b/src/lib/tecs/TECS.hpp index eac8d07492..360c85cc1d 100644 --- a/src/lib/tecs/TECS.hpp +++ b/src/lib/tecs/TECS.hpp @@ -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