mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: added relay get() binding
This commit is contained in:
parent
e7aa868669
commit
19fd2d0b88
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue