mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 18:13:33 +08:00
AutoLineSmoothVel - Remove duplicate of _yaw_sp_prev update. This is done in the Auto FlightTask, _limit_yaw_rate
This commit is contained in:
@@ -82,8 +82,6 @@ void FlightTaskAutoLineSmoothVel::_generateHeading()
|
||||
if (!_generateHeadingAlongTraj()) {
|
||||
_yaw_setpoint = _yaw_sp_prev;
|
||||
}
|
||||
|
||||
_yaw_sp_prev = _yaw_setpoint;
|
||||
}
|
||||
|
||||
bool FlightTaskAutoLineSmoothVel::_generateHeadingAlongTraj()
|
||||
|
||||
@@ -79,7 +79,6 @@ protected:
|
||||
void _generateTrajectory();
|
||||
VelocitySmoothing _trajectory[3]; ///< Trajectories in x, y and z directions
|
||||
|
||||
float _yaw_sp_prev{NAN};
|
||||
bool _want_takeoff{false};
|
||||
|
||||
/* counters for estimator local position resets */
|
||||
|
||||
Reference in New Issue
Block a user