Can't get motion commander example to work

Discussions about quadcopters/multi-rotors
Post Reply
jalalirs
Beginner
Posts: 2
Joined: Fri Mar 22, 2019 11:33 am

Can't get motion commander example to work

Post by jalalirs »

Hello all,

I have been trying to run the motion commander example https://github.com/bitcraze/crazyflie-l ... er_demo.py but no success. I managed to run the ramp.py but not any example with SyncCrazyflie. Astonishingly, the scripts run ok with no error but the quadcopter is never triggered. I have tried to debug the code but I couldn't find any bug. I put print statement everywhere in the code, including the send_packet function. Everything seems fine and the numbers look reasonable. Can you please advice

I am using Crazyflie 2 with a flow deck. I am running python3.7 on Mac

I attached the logs

Regards,
Attachments
logs.txt
(6.74 KiB) Downloaded 258 times
jalalirs
Beginner
Posts: 2
Joined: Fri Mar 22, 2019 11:33 am

Re: Can't get motion commander example to work

Post by jalalirs »

Waw. Right after I posted this question, I was able to solve it by updating the framework of the crazyflie using the iphone app. This solved the problem
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Can't get motion commander example to work

Post by arnaud »

It is most likely that the firmware in your crazyflie was too old for these example. The examples assumes you are running the latest version of the Crazyflie firmware. Since I assume you have a Crazyradio, updating the firmware using the PC client is much quicker than using your iphone, see the getting started guide for instruction: https://www.bitcraze.io/getting-started ... #latest-fw.
Post Reply