From 1ce533c0042e5ae3ed68db57d116f7bd8a36d42e Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 12 Mar 2019 12:15:20 +0300 Subject: [PATCH] Add pause and resume commands for receive --- Drone/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Drone/client.py b/Drone/client.py index 61fae24..838659f 100644 --- a/Drone/client.py +++ b/Drone/client.py @@ -220,6 +220,10 @@ try: rospy.Timer(rospy.Duration(dt), start_animation, oneshot=True) elif command == 'takeoff': play_animation.takeoff() + elif command == 'pause' + pause_animation() + elif command == 'resume' + resume_animation() elif command == 'stop': stop_animation() #FlightLib.reach(5, 5, 2) @@ -227,7 +231,6 @@ try: FlightLib.land1() # TODO dont forget change back to land elif command == 'disarm': FlightLib.arming(False) - elif command == 'request': request_target = args[0] print("Got request for:", request_target)