mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-11 19:33:33 +08:00
removed some dead code
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user