Skip to content

Commit

Permalink
PositionControl: remove speed_xy constraint since it's anyways unused
Browse files Browse the repository at this point in the history
  • Loading branch information
MaEtUgR committed Dec 18, 2019
1 parent a4a9d50 commit 83e51ad
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ void PositionControl::setConstraints(const vehicle_constraints_s &constraints)
_constraints.speed_down = _lim_vel_down;
}

if (!PX4_ISFINITE(constraints.speed_xy) || !(constraints.speed_xy < _lim_vel_horizontal)) {
_constraints.speed_xy = _lim_vel_horizontal;
}
// ignore _constraints.speed_xy TODO: remove it completely as soon as no task uses it anymore to avoid confusion
}

void PositionControl::update(const float dt)
Expand Down

0 comments on commit 83e51ad

Please sign in to comment.