From dc1b14b81238cfda6bd05c0bd12e7a1ebbff7985 Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sun, 27 Oct 2024 04:42:23 +0100 Subject: [PATCH] cleanup --- examples/parking_4p.jl | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/examples/parking_4p.jl b/examples/parking_4p.jl index 8a618c94..b4058eda 100644 --- a/examples/parking_4p.jl +++ b/examples/parking_4p.jl @@ -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 @@ -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 @@ -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