mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: add success status to serialLED:send and serialLED:set_RGB
This commit is contained in:
parent
00ceca0fff
commit
b5ef11797b
|
@ -2000,6 +2000,7 @@ serialLED = {}
|
|||
|
||||
-- desc
|
||||
---@param chan integer
|
||||
---@return boolean
|
||||
function serialLED:send(chan) end
|
||||
|
||||
-- desc
|
||||
|
@ -2008,6 +2009,7 @@ function serialLED:send(chan) end
|
|||
---@param red integer
|
||||
---@param green integer
|
||||
---@param blue integer
|
||||
---@return boolean
|
||||
function serialLED:set_RGB(chan, led_index, red, green, blue) end
|
||||
|
||||
-- desc
|
||||
|
|
|
@ -313,8 +313,8 @@ singleton AP_SerialLED depends AP_SERIALLED_ENABLED
|
|||
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_rgb 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 send void uint8_t 1 16
|
||||
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 boolean uint8_t 1 16
|
||||
|
||||
include SRV_Channel/SRV_Channel.h
|
||||
singleton SRV_Channels depends (!defined(HAL_BUILD_AP_PERIPH) || defined(HAL_PERIPH_ENABLE_RC_OUT))
|
||||
|
|
Loading…
Reference in New Issue