Skip to content

Commit

Permalink
use max_acc from settings.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Dec 19, 2024
1 parent 240be48 commit 73e91e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function calc_acceleration(wm::AsyncMachine, speed, force; set_torque=nothing, s
end
end
# # limit the acceleration
MAX_ACC = 4.0
MAX_ACC = wm.set.max_acc
limited_speed = set_speed
if set_speed > wm.last_set_speed + MAX_ACC*dt
limited_speed = wm.last_set_speed + MAX_ACC*dt
Expand Down

0 comments on commit 73e91e5

Please sign in to comment.