From b823216fbdeddf0cbe639f26a93d061205fec0ef Mon Sep 17 00:00:00 2001 From: Uwe Fechner Date: Sat, 23 Mar 2024 13:05:02 +0100 Subject: [PATCH] RUN/STOP button works now --- examples/autopilot.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/autopilot.jl b/examples/autopilot.jl index 25d9fb07..b229ed2f 100644 --- a/examples/autopilot.jl +++ b/examples/autopilot.jl @@ -144,7 +144,12 @@ end on_stop(ssc) clear!(kps4) -on(viewer.btn_PLAY.clicks) do c; viewer.stop=false; end +on(viewer.btn_PLAY.clicks) do c + viewer.stop = ! KiteViewers.running[] +end +on(viewer.btn_STOP.clicks) do c + KiteViewers.running[] = false +end on(viewer.btn_PARKING.clicks) do c; parking(); end on(viewer.btn_AUTO.clicks) do c; autopilot(); end