Skip to content

Commit 27781c8

Browse files
committed
AP_Scripting: add a pair of warnings about using RC set_override method
had an instance where a script was using this override and didn't failsafe as expected
1 parent 8ce9cc8 commit 27781c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libraries/AP_Scripting/docs/docs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ local RC_Channel_ud = {}
13561356
---@return number
13571357
function RC_Channel_ud:norm_input_ignore_trim() end
13581358

1359-
-- desc
1359+
-- Override RC channel value. Be wary using this override as it effectively disables RC failsafes
13601360
---@param PWM integer
13611361
function RC_Channel_ud:set_override(PWM) end
13621362

libraries/AP_Scripting/generator/description/bindings.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ ap_object RC_Channel method norm_input float
422422
ap_object RC_Channel method norm_input_dz float
423423
ap_object RC_Channel method get_aux_switch_pos uint8_t
424424
ap_object RC_Channel method norm_input_ignore_trim float
425+
-- be wary using this binding as it effectively disables RC failsafes!
425426
ap_object RC_Channel method set_override void uint16_t 0 2200 0'literal
426427

427428
include RC_Channel/RC_Channel.h

0 commit comments

Comments
 (0)