mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 07:07:58 +00:00
drone: Update led behaviour during landing
This commit is contained in:
@@ -392,6 +392,10 @@ try:
|
||||
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)
|
||||
while (flight.get_telemetry_locked().armed):
|
||||
if interrupter.is_set():
|
||||
break
|
||||
rospy.sleep(0.5)
|
||||
if use_leds:
|
||||
led.set_effect(r=0, g=0, b=0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user