FlightTaskOrbit: remove unnecessary _sanitizeParams() in activation

the parameters are anyways sanitized on every update so even if activate()
sets unfeasible one's they get adjusted on the first update.
This commit is contained in:
Matthias Grob
2022-01-10 17:34:05 +01:00
parent 661496ab24
commit e0337a484b
@@ -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);