Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Jul 24, 2024
1 parent 9025da9 commit c9f31b7
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 @@ -115,7 +115,7 @@ function calc_acceleration(wm::AsyncMachine, speed, force; set_torque=nothing, s
omega_dot_m = (wm.u_nom^2 * R2 * delta) / (omega_sync^2 * (R2^2 + L^2 * delta^2))
end
τ = calc_coulomb_friction(wm) * smooth_sign(omega) + calc_viscous_friction(wm, omega)
omega_dot_m += wm.set.drum_radius / wm.set.gear_ratio * force * 4000.0 / wm.set.max_winch_force - τ
omega_dot_m += wm.set.drum_radius / wm.set.gear_ratio * force * 4000.0 / wm.set.max_force - τ
omega_dot_m *= 1/wm.set.inertia_total
wm.set.drum_radius/wm.set.gear_ratio * omega_dot_m
end
Expand Down

0 comments on commit c9f31b7

Please sign in to comment.