Skip to content
Snippets Groups Projects
Commit 5bcd4963 authored by Paul Beuchat's avatar Paul Beuchat
Browse files

Fixed error in CrazyRadio python node due to still invovling wrong send to commander function

parent 6c098b8b
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ class CrazyRadioClient:
def disconnect(self):
print "[CRAZY RADIO] sending Motors OFF command before disconnecting"
self._send_to_commander_motor(0, 0, 0, 0)
cf_client._send_to_commander(0, 0, 0, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0)
# change state to motors OFF
msg = IntWithHeader()
msg.shouldCheckForAgentID = False
......@@ -811,7 +811,7 @@ if __name__ == '__main__':
rospy.loginfo("[CRAZY RADIO] Turning off crazyflie")
# Send the motors off command
cf_client._send_to_commander_motor(0, 0, 0, 0)
cf_client._send_to_commander(0, 0, 0, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0, CF_ONBOARD_CONTROLLER_MODE_OFF, 0)
# Send a "Motors OFF" on behalf of the "FlyingAgentClient"
# > This serves the purpose of changing the flying state
......
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