Skip to content

Commit

Permalink
AP_Scripting: rover-quiktune warn user of bad RC configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed May 22, 2024
1 parent 9d0ca26 commit fb7d26a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_Scripting/applets/rover-quicktune.lua
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ function update()
end

local sw_pos = rc:get_aux_cached(RTUN_RC_FUNC:get())
if not sw_pos then
if not sw_pos and get_time() > last_warning + 5 then
gcs:send_text(MAV_SEVERITY.CRITICAL, "RTun: scripting RC channel not found or not active")
last_warning = get_time()
return
end

Expand Down

0 comments on commit fb7d26a

Please sign in to comment.