From d59db97e1986813c3d98c05b11b1100eb60ac37d Mon Sep 17 00:00:00 2001
From: Angel <roangel@student.ethz.ch>
Date: Fri, 13 Oct 2017 12:21:08 +0200
Subject: [PATCH] small fix python script

---
 pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py b/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py
index 62da8744..65d0c470 100755
--- a/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py
+++ b/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py
@@ -129,7 +129,7 @@ class PPSRadioClient:
 
     def disconnect(self):
         print "Motors OFF"
-        self._send_to_commander(0, 0, 0, 0, 0, 0, 0, 0, CONTROLLER_MOTOR)
+        self._send_to_commander_motor(0, 0, 0, 0)
         # change state to motors OFF
         self.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF)
         time.sleep(0.1)
@@ -315,7 +315,7 @@ if __name__ == '__main__':
     rospy.spin()
     rospy.loginfo("Turning off crazyflie")
 
-    cf_client._send_to_commander(0, 0, 0, 0, 0, 0, 0, 0, CONTROLLER_MOTOR)
+    cf_client._send_to_commander_motor(0, 0, 0, 0)
     # change state to motors OFF
     cf_client.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF)
     #wait for client to send its commands
-- 
GitLab