From ad97a8bdcfb3a0752e87fec5ea76a321d35092ce Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Tue, 29 Oct 2024 00:47:30 +0100 Subject: [PATCH] Cleanup --- examples/parking_4p.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/parking_4p.jl b/examples/parking_4p.jl index 57c80fb..e68b892 100644 --- a/examples/parking_4p.jl +++ b/examples/parking_4p.jl @@ -52,7 +52,6 @@ SHOW_KITE = true viewer::Viewer3D = Viewer3D(SHOW_KITE, "WinchON") -steps = 0 T::Vector{Float64} = zeros(Int64(MAX_TIME/dt)) AZIMUTH::Vector{Float64} = zeros(Int64(MAX_TIME/dt)) HEADING::Vector{Float64} = zeros(Int64(MAX_TIME/dt)) @@ -139,10 +138,9 @@ function simulate(integrator) end function play() - global steps integrator = KiteModels.init_sim!(kps4, stiffness_factor=0.5) toc() - steps = simulate(integrator) + simulate(integrator) GC.enable(true) end @@ -163,5 +161,5 @@ p = plotx(T, rad2deg.(AZIMUTH), rad2deg.(HEADING), [100*(SET_STEERING), 100*(STE xlabel="Time [s]", ylabels=["Azimuth [°]", "Heading [°]", "steering [%]", "psi_dot [°/s]", "NDI_GAIN", "v_app [m/s]"], labels=["azimuth", "heading", ["set_steering", "steering"], ["psi_dot", "psi_dot_set"], "NDI_GAIN", "v_app"], - fig="Azimuth, heading, steering and more",) + fig="Azimuth, heading, steering and more") display(p)