Skip to content

Commit

Permalink
handle event STOP
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 21, 2024
1 parent 46cd694 commit 28b4b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/viewer3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,11 @@ function Viewer3D(show_kite=true, autolabel="Autopilot")
zoom[1] /= 1.2
reset_and_zoom(camera, s.scene3D, zoom[1])
end
on(s.btn_STOP.clicks) do c
stop(s)
end
status[] = "Stopped"
s
s
end

function save_png(viewer; filename="video", index = 1)
Expand Down

0 comments on commit 28b4b41

Please sign in to comment.