Skip to content

Commit

Permalink
RUN/STOP button works now
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Mar 23, 2024
1 parent 83d6e16 commit b823216
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b823216

Please sign in to comment.