From 79bb6ca0ba3fa6bec73ae643255bb6594162ff84 Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Thu, 11 Jun 2020 18:48:52 +0300 Subject: [PATCH] drone: Fix sleep during landing --- drone/modules/animation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drone/modules/animation.py b/drone/modules/animation.py index 386577d..c805fac 100644 --- a/drone/modules/animation.py +++ b/drone/modules/animation.py @@ -396,7 +396,7 @@ try: while (flight.get_telemetry_locked().armed): if interrupter.is_set(): break - rospy.sleep(0.5) + time.sleep(0.5) led.set_effect(r=0, g=0, b=0) except NameError: