diff --git a/src/modules/mc_pos_control/TranslationControl.cpp b/src/modules/mc_pos_control/TranslationControl.cpp index b0a756b89f..634af95575 100644 --- a/src/modules/mc_pos_control/TranslationControl.cpp +++ b/src/modules/mc_pos_control/TranslationControl.cpp @@ -238,9 +238,6 @@ void TranslationControl::_velocityController(const float &dt) bool stop_I[2] = {false, false}; // stop integration for xy and z ControlMath::constrainPIDu(_thr_sp, stop_I, _ThrLimit, direction); - /* Throttle is just thrust length. */ - _throttle = _thr_sp.length(); - /* Update integrals */ if (!stop_I[0]) { _thr_int(0) += vel_err(0) * Iv(0) * dt; diff --git a/src/modules/mc_pos_control/TranslationControl.hpp b/src/modules/mc_pos_control/TranslationControl.hpp index d2993c5b42..8c37d8e347 100644 --- a/src/modules/mc_pos_control/TranslationControl.hpp +++ b/src/modules/mc_pos_control/TranslationControl.hpp @@ -73,7 +73,6 @@ public: matrix::Vector3f getThrustSetpoint() {return _thr_sp;} float getYawSetpoint() { return _yaw_sp;} float getYawspeedSetpoint() {return _yawspeed_sp;} - float getThrottle() {return _throttle;} matrix::Vector3f getVelSp() {return _vel_sp;} matrix::Vector3f getPosSp() {return _pos_sp;} @@ -95,7 +94,6 @@ private: matrix::Vector3f _thr_sp{}; float _yaw_sp{}; float _yawspeed_sp{}; - float _throttle{}; /* Other variables */ matrix::Vector3f _thr_int{};