diff --git a/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py b/pps_ws/src/d_fall_pps/crazyradio/CrazyRadio.py index 62da8744dd3c95813cd3e5c31f61225f2a39fba5..65d0c470ea09448ea61186b3b9cb0cbacc33dd75 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