mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +08:00
send_ppm sent only if RC is active
This commit is contained in:
@@ -107,6 +107,9 @@ module Make(A:Data.MISSION) = struct
|
||||
rc_channels;
|
||||
ignore (on_off#connect#toggled (fun () -> sliders#coerce#misc#set_sensitive on_off#active));
|
||||
|
||||
let send_ppm = fun () ->
|
||||
if on_off#active then send_ppm () in
|
||||
|
||||
Stdlib.timer rc_period send_ppm; (** FIXME: should use time_scale *)
|
||||
window#show ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user