I have two scripts, named autopilot.jl
and parking_wind_dir.jl
. You can find them online: KiteControllers.jl/examples at old_stable · aenarete/KiteControllers.jl · GitHub
I can run the first script, I can run the second script, but if I run the second script first, then running the first script fails. This fails:
julia --project
include("examples/autopilot.jl")
Click to close the Makie window.
include("examples/parking_wind_dir.jl")
There is no crash of the program, but the kite crashes, as if some parameters would have been changed. But there are no common, global variables. I also put both scripts in let
blocks which did not help. I also ensured the the two scripts do not contain functions with the same name.
Could that be related to the event handlers, like:
on(app.viewer.btn_PARKING.clicks) do c; parking(); end
on(app.viewer.btn_AUTO.clicks) do c; autopilot(); end
on(app.viewer.btn_STOP.clicks) do c; stop_(); end
If yes, how can I get rid of them/ disable them at the end of the second script?
Any ideas how to debug that further?