From baa77fbb96f76a8b3bc1c4c6881245d2ded607cd Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Sat, 20 Jun 2020 04:03:10 +0300 Subject: [PATCH] drone: Turn led off before landing --- drone/modules/animation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/drone/modules/animation.py b/drone/modules/animation.py index cfa17f7..18231e3 100644 --- a/drone/modules/animation.py +++ b/drone/modules/animation.py @@ -553,6 +553,7 @@ try: def land(z=1.5, descend=False, timeout=5.0, frame_id='map', use_leds=True, interrupter=interrupt_event): + led.set_effect(r=0, g=0, b=0) if use_leds: led.set_effect(effect='blink_fast', r=255, g=0, b=0) flight.land(z=z, descend=descend, timeout_land=timeout, frame_id_land=frame_id, interrupter=interrupter)