diff --git a/libraries/AP_Scripting/docs/docs.lua b/libraries/AP_Scripting/docs/docs.lua index 4afe1f28f7..044314b9c5 100644 --- a/libraries/AP_Scripting/docs/docs.lua +++ b/libraries/AP_Scripting/docs/docs.lua @@ -1296,6 +1296,11 @@ function rc:get_channel(chan_num) end ---@return boolean function rc:has_valid_input() end +-- return cached level of aux function +---@param aux_fn integer +---@return integer|nil +function rc:get_aux_cached(aux_fn) end + -- desc ---@param aux_fun integer ---@param ch_flag integer diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 6f1a141cc6..64fbdf9862 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -276,6 +276,7 @@ singleton RC_Channels method run_aux_function boolean RC_Channel::AUX_FUNC'enum singleton RC_Channels method has_valid_input boolean singleton RC_Channels method lua_rc_channel RC_Channel uint8_t 1 NUM_RC_CHANNELS singleton RC_Channels method lua_rc_channel rename get_channel +singleton RC_Channels method get_aux_cached boolean RC_Channel::AUX_FUNC'enum 0 UINT16_MAX uint8_t'Null include AP_SerialManager/AP_SerialManager.h