Skip to content

Commit

Permalink
fix example speed_control.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 2, 2024
1 parent 85ba6eb commit 05e5c3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/speed_control.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ using Pkg
if ! ("ControlPlots" keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
end
using ControlPlots, WinchModels
using ControlPlots, WinchModels, KiteUtils

set::Settings = deepcopy(load_settings("system.yaml"))

v_ro = 3.0 # m/s
β = 26.0 # degrees
Expand Down Expand Up @@ -40,7 +42,7 @@ function simulate(t_sim=120; f_0=7663, speed_0=3.1735, dt=0.005)
V_RO = Float64[]
f = f_0
v_ro = speed_0
wm=AsyncMachine()
wm = AsyncMachine(set)
for t in time
# calculate the set_speed using a ramp
# calculate the acceleration
Expand Down

0 comments on commit 05e5c3b

Please sign in to comment.