mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
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
|
---@return boolean
|
||||||
function relay:enabled(instance) end
|
function relay:enabled(instance) end
|
||||||
|
|
||||||
|
-- return state of a relay
|
||||||
|
---@param instance integer
|
||||||
|
---@return uint8_t
|
||||||
|
function relay:get(instance) end
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
---@param instance integer
|
---@param instance integer
|
||||||
function relay:off(instance) end
|
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 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 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 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
|
include GCS_MAVLink/GCS.h
|
||||||
singleton GCS rename gcs
|
singleton GCS rename gcs
|
||||||
|
Loading…
Reference in New Issue
Block a user