EasyManua.ls Logo

dji RoboMaster EP - Page 17

dji RoboMaster EP
187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
16
(1) Objective: Sets chassis LED colors and effects
Solid: LED will remain steady
Off: LED will switch off
Pulse: LED will flicker
Blink: LED will blink at a specified frequency
(2) Type: Execution block
(3) Example: Display streaming color effects
This will set the robot to switch off all LEDs on the chassis for one second, and then flash all LED colors in
sequence.
Python API
Function: led_ctrl.set_bottom_led(armor_enum, r, g, b, led_effect_enum)
Parameters:
armor_enum(enum):
rm_define.armor_bottom_all
rm_define.armor_bottom_front
rm_define.armor_bottom_back
rm_define.armor_bottom_left
rm_define.armor_bottom_right
r(int): [0, 255]
g(int): [0, 255]
b(int): [0, 255]
led_effect_enum(enum):
rm_define.effect_always_on

Related product manuals