mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_Scripting: adjust for updated LED API
This commit is contained in:
parent
dbba89a024
commit
fe86d8bb0c
@ -63,7 +63,7 @@ function set_Rainbow(chan, led, v)
|
||||
r = math.floor(rainbow[row][1] + p * (rainbow[row+1][1] - rainbow[row][1]))
|
||||
g = math.floor(rainbow[row][2] + p * (rainbow[row+1][2] - rainbow[row][2]))
|
||||
b = math.floor(rainbow[row][3] + p * (rainbow[row+1][3] - rainbow[row][3]))
|
||||
serialLED:set_RGB(chan, uint32_t(1 << led), r, g, b)
|
||||
serialLED:set_RGB(chan, led, r, g, b)
|
||||
end
|
||||
|
||||
--[[
|
||||
|
@ -155,8 +155,8 @@ singleton AP_Vehicle method get_time_flying_ms uint32_t
|
||||
|
||||
include AP_SerialLED/AP_SerialLED.h
|
||||
singleton AP_SerialLED alias serialLED
|
||||
singleton AP_SerialLED method set_num_LEDs boolean uint8_t 1 16 uint8_t 0 32
|
||||
singleton AP_SerialLED method set_RGB void uint8_t 1 16 uint32_t 0U UINT32_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX
|
||||
singleton AP_SerialLED method set_num_LEDs 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 0 UINT8_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX
|
||||
singleton AP_SerialLED method send void
|
||||
|
||||
include SRV_Channel/SRV_Channel.h
|
||||
|
Loading…
Reference in New Issue
Block a user