Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Oct 27, 2024
1 parent cabd9ad commit dc1b14b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions examples/parking_4p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ if ! ("ControlPlots" ∈ keys(Pkg.project().dependencies))
end
using Timers; tic()

using Pkg
# Pkg.update()
# pkg"add KitePodModels#main"
# pkg"add KiteModels#main"

using KiteControllers, KiteViewers, KiteModels, ControlPlots, Rotations
set = deepcopy(load_settings("system_v9.yaml"))
set.abs_tol=0.00006
Expand All @@ -32,11 +27,6 @@ u_d = 0.01 * set.depower
ssc::SystemStateControl = SystemStateControl(wcs, fcs, fpps; u_d0, u_d, v_wind = set.v_wind)
dt::Float64 = wcs.dt

# # result of tuning
# fcs.p=0.60*20
# fcs.i=0.15
# fcs.d=12.34

if KiteUtils.PROJECT == "system.yaml"
# result of tuning
fcs.p=1.6
Expand Down Expand Up @@ -151,15 +141,7 @@ function play()
global steps
integrator = KiteModels.init_sim!(kps4, stiffness_factor=0.5)
toc()
# try
steps = simulate(integrator)
# catch e
# if isa(e, AssertionError)
# println("AssertionError! Halting simulation.")
# else
# println("Exception! Halting simulation.")
# end
# end
steps = simulate(integrator)
GC.enable(true)
end

Expand Down

0 comments on commit dc1b14b

Please sign in to comment.