EasyManua.ls Logo

dji RoboMaster EP - Page 18

dji RoboMaster EP
187 pages
Print Icon
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...
17
■ rm_define.effect_always_off
■ rm_define.effect_breath
■ rm_define.effect_flash
(1) Objective: Sets gimbal 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
● Scrolling: Eight LEDs arranged in a circle will light up in clockwise direction
(2) Type: Execution block
(3) Example: Show off gimbal LED effects
This will set the robot to display all five gimbal LED effects in sequence.
Python API:
Function: led_ctrl.set_top_led(armor_enum, r, g, b, led_effect_enum)
Parameters:
● armor_enum(enum):