Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 28, 2024
1 parent b814ee9 commit ad97a8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/parking_4p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand All @@ -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)

0 comments on commit ad97a8b

Please sign in to comment.