How to turn on/off Light at front of drone?


#1

Product: Airborne Night
Use of libARController: NO
SDK platform: Nodejs, Python
Reproductible with the official app: YES

Hi,
at FreeFlightMini app I can turn front light on/off or set blinked for Airbone Night and Swat. what BLE commands I need to do the same in my app?
Thanks.


#2

Hi,

It is the command StartAnimation with the parameter anim set to HEADLIGHTS_FLASH or HEADLIGHTS_BLINK or HEADLIGHTS_OSCILLATION.

Best regards,
Djavan


#3

I’ve tried using the line below on the Airborne Night but it doesn’t seem to do the trick.

Could someone please help?

mDeviceController.getFeatureCommon().sendAnimationsStartAnimation(ARCOMMANDS_COMMON_ANIMATIONS_STARTANIMATION_ANIM_ENUM.ARCOMMANDS_COMMON_ANIMATIONS_STARTANIMATION_ANIM_HEADLIGHTS_FLASH);