From 2d67e8cf8106f2a770ffc4b78c772b5489245670 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Thu, 6 Feb 2025 11:18:32 +0300 Subject: [PATCH] removed some dead code Signed-off-by: RomanBapst --- src/lib/npfg/DirectionalGuidance.cpp | 1 - .../FwLateralLongitudinalControl.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/lib/npfg/DirectionalGuidance.cpp b/src/lib/npfg/DirectionalGuidance.cpp index 4c19c82366..72a06568d9 100644 --- a/src/lib/npfg/DirectionalGuidance.cpp +++ b/src/lib/npfg/DirectionalGuidance.cpp @@ -71,7 +71,6 @@ DirectionalGuidance::guideToPath(const Vector2f &curr_pos_local, const Vector2f // must be called before trackErrorBound() as it updates time_const_ adapted_period_ = adaptPeriod(ground_speed, airspeed, wind_speed, track_error, path_curvature, wind_vel, unit_path_tangent, feas_on_track_); - //const float p_gain = pGain(adapted_period, damping_); _time_const = timeConst(adapted_period_, damping_); // track error bound is dynamic depending on ground speed diff --git a/src/modules/fw_lateral_longitudinal_control/FwLateralLongitudinalControl.cpp b/src/modules/fw_lateral_longitudinal_control/FwLateralLongitudinalControl.cpp index ec904ad19c..b1857dc622 100644 --- a/src/modules/fw_lateral_longitudinal_control/FwLateralLongitudinalControl.cpp +++ b/src/modules/fw_lateral_longitudinal_control/FwLateralLongitudinalControl.cpp @@ -317,8 +317,6 @@ FwLateralLongitudinalControl::tecs_update_pitch_throttle(const float control_int /* No underspeed protection in landing mode */ _tecs.set_detect_underspeed_enabled(!disable_underspeed_detection); - //updateTECSAltitudeTimeConstant(is_low_height, control_interval); - // HOTFIX: the airspeed rate estimate using acceleration in body-forward direction has shown to lead to high biases // when flying tight turns. It's in this case much safer to just set the estimated airspeed rate to 0. const float airspeed_rate_estimate = 0.f;