AP_Scripting: added get_aux_cached() RC binding

This commit is contained in:
Andrew Tridgell 2022-10-10 11:37:10 +11:00
parent ff4478a4d9
commit ac1be8b500
2 changed files with 6 additions and 0 deletions

View File

@ -1421,6 +1421,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

View File

@ -295,6 +295,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