Skip to content
Snippets Groups Projects
Commit d59db97e authored by Angel's avatar Angel
Browse files

small fix python script

parent 94ff6027
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class PPSRadioClient: ...@@ -129,7 +129,7 @@ class PPSRadioClient:
def disconnect(self): def disconnect(self):
print "Motors OFF" 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 # change state to motors OFF
self.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF) self.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF)
time.sleep(0.1) time.sleep(0.1)
...@@ -315,7 +315,7 @@ if __name__ == '__main__': ...@@ -315,7 +315,7 @@ if __name__ == '__main__':
rospy.spin() rospy.spin()
rospy.loginfo("Turning off crazyflie") 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 # change state to motors OFF
cf_client.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF) cf_client.PPSClient_command_pub.publish(CMD_CRAZYFLY_MOTORS_OFF)
#wait for client to send its commands #wait for client to send its commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment