AP_Scripting: added get_aux_cached() RC binding

This commit is contained in:
Andrew Tridgell 2022-10-10 11:37:10 +11:00 committed by Randy Mackay
parent 3c8a46d2c5
commit 06b18183e0
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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