Skip to content

Commit

Permalink
FlightTaskOrbit: remove unnecessary _sanitizeParams() in activation
Browse files Browse the repository at this point in the history
the parameters are anyways sanitized on every update so even if activate()
sets unfeasible one's they get adjusted on the first update.
  • Loading branch information
MaEtUgR committed Jan 10, 2022
1 parent d4f85f3 commit 5df3b87
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ bool FlightTaskOrbit::activate(const vehicle_local_position_setpoint_s &last_set
bool ret = FlightTaskManualAltitude::activate(last_setpoint);
_orbit_radius = _radius_min;
_orbit_velocity = 1.f;
_sanitizeParams(_orbit_radius, _orbit_velocity);
_center = _position;
_initial_heading = _yaw;
_slew_rate_yaw.setForcedValue(_yaw);
Expand Down

0 comments on commit 5df3b87

Please sign in to comment.