mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Scripting: add success status to serialLED:send and serialLED:set_RGB
This commit is contained in:
parent
7d5b86958b
commit
2750bda430
@ -1760,6 +1760,7 @@ serialLED = {}
|
|||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
---@param chan integer
|
---@param chan integer
|
||||||
|
---@return boolean
|
||||||
function serialLED:send(chan) end
|
function serialLED:send(chan) end
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
@ -1768,6 +1769,7 @@ function serialLED:send(chan) end
|
|||||||
---@param red integer
|
---@param red integer
|
||||||
---@param green integer
|
---@param green integer
|
||||||
---@param blue integer
|
---@param blue integer
|
||||||
|
---@return boolean
|
||||||
function serialLED:set_RGB(chan, led_index, red, green, blue) end
|
function serialLED:set_RGB(chan, led_index, red, green, blue) end
|
||||||
|
|
||||||
-- desc
|
-- desc
|
||||||
|
@ -282,8 +282,8 @@ include AP_SerialLED/AP_SerialLED.h
|
|||||||
singleton AP_SerialLED rename serialLED
|
singleton AP_SerialLED rename serialLED
|
||||||
singleton AP_SerialLED method set_num_neopixel boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
|
singleton AP_SerialLED method set_num_neopixel boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
|
||||||
singleton AP_SerialLED method set_num_profiled boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
|
singleton AP_SerialLED method set_num_profiled boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
|
||||||
singleton AP_SerialLED method set_RGB void uint8_t 1 16 int8_t -1 INT8_MAX uint8_t'skip_check uint8_t'skip_check uint8_t'skip_check
|
singleton AP_SerialLED method set_RGB boolean uint8_t 1 16 int8_t -1 INT8_MAX uint8_t'skip_check uint8_t'skip_check uint8_t'skip_check
|
||||||
singleton AP_SerialLED method send void uint8_t 1 16
|
singleton AP_SerialLED method send boolean uint8_t 1 16
|
||||||
|
|
||||||
include SRV_Channel/SRV_Channel.h
|
include SRV_Channel/SRV_Channel.h
|
||||||
singleton SRV_Channels rename SRV_Channels
|
singleton SRV_Channels rename SRV_Channels
|
||||||
|
Loading…
Reference in New Issue
Block a user