AP_Scripting: added relay get() binding

This commit is contained in:
Andrew Tridgell 2022-10-10 10:51:16 +11:00 committed by Randy Mackay
parent dcecff3bef
commit 04fb0b8ebc
2 changed files with 6 additions and 0 deletions

View File

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

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