Skip to content
Snippets Groups Projects
Commit f1262cbe authored by bresch's avatar bresch
Browse files

Manual Traj - Avoid velocity jumps due to a modification of the constraints

parent 57eef6b1
No related branches found
No related tags found
No related merge requests found
......@@ -95,11 +95,11 @@ void FlightTaskManualPositionSmoothVel::_updateSetpoints()
if (_velocity_setpoint(2) < 0.f) { // up
_smoothing[2].setMaxAccel(MPC_ACC_UP_MAX.get());
_smoothing[2].setMaxVel(_constraints.speed_up);
_smoothing[2].setMaxVel(MPC_Z_VEL_MAX_UP.get());
} else { // down
_smoothing[2].setMaxAccel(MPC_ACC_DOWN_MAX.get());
_smoothing[2].setMaxVel(_constraints.speed_down);
_smoothing[2].setMaxVel(MPC_Z_VEL_MAX_DN.get());
}
Vector2f vel_xy_sp = Vector2f(&_velocity_setpoint(0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment