AP_Scripting: added relay get() binding

This commit is contained in:
Andrew Tridgell 2022-10-10 10:51:16 +11:00
parent e7aa868669
commit 19fd2d0b88
2 changed files with 6 additions and 0 deletions

View File

@ -1774,6 +1774,11 @@ function relay:toggle(instance) end
---@return boolean
function relay:enabled(instance) end
-- return state of a relay
---@param instance integer
---@return uint8_t
function relay:get(instance) end
-- desc
---@param instance integer
function relay:off(instance) end

View File

@ -209,6 +209,7 @@ singleton AP_Relay method on void uint8_t 0 AP_RELAY_NUM_RELAYS
singleton AP_Relay method off void uint8_t 0 AP_RELAY_NUM_RELAYS
singleton AP_Relay method enabled boolean uint8_t 0 AP_RELAY_NUM_RELAYS
singleton AP_Relay method toggle void uint8_t 0 AP_RELAY_NUM_RELAYS
singleton AP_Relay method get uint8_t uint8_t 0 AP_RELAY_NUM_RELAYS
include GCS_MAVLink/GCS.h
singleton GCS rename gcs