Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Oct 24, 2024
1 parent 71b78a5 commit 5d30579
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/parking_4p.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# activate the test environment if needed
# TODO plot AoA and elevatio
using Pkg
if ! ("ControlPlots" keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
Expand All @@ -15,6 +16,7 @@ set = deepcopy(load_settings("system_v9.yaml"))
set.abs_tol=0.00006
set.rel_tol=0.0001
# set.version = 1
set.v_wind = 12.3
#set.l_tether = 150

kcu::KCU = KCU(set)
Expand Down Expand Up @@ -46,9 +48,9 @@ if KiteUtils.PROJECT == "system.yaml"
else
# result of tuning
println("not system.yaml")
fcs.p=1.0
fcs.i=0.1
fcs.d=13.25*1.0
fcs.p=0.8
fcs.i=0.04
fcs.d=13.25*1.105
fcs.use_chi = false
fcs.gain = 0.04*0.5
end
Expand Down Expand Up @@ -95,7 +97,7 @@ function simulate(integrator)
set_depower_steering(kps4.kcu, depower, steering)
end
SET_STEERING[i] = steering
STEERING[i] = get_steering(kps4.kcu)
STEERING[i] = get_steering(kps4.kcu)/set.cs_4p
# execute winch controller
v_ro = 0.0
t_sim = @elapsed KiteModels.next_step!(kps4, integrator; set_speed=v_ro, dt=dt)
Expand Down

0 comments on commit 5d30579

Please sign in to comment.