Crazyflie Python Demos
Posted: Mon May 13, 2013 6:30 am
I made a GitHub repo for demos of the crazyflie python libraries. It's probably not needed but maybe it will be useful to someone down the road.
https://github.com/JamesHagerman/Crazyflie_Python_Demos
The only script in there right now is a fixed-up version of the sample code at the bottom of this page:
http://wiki.bitcraze.se/projects:crazyf ... de_example
If nothing else, the "update" thread down at the bottom shouldn't be recursive.
I also added some input checking to make it not crash the app if you enter bad values along with code to detect "exit", "quit", "e", and "q" inputs to try and close everything down cleanly.
There seem to be a few bugs in the libraries themselves but since my version of libusb is also acting up I'm not quite sure what's going on.
Also, the only way I can get the script to run is to put the script into the lib/ directory of the client repo and run it from there. I don't know how to get the imports to work correctly otherwise.
So, I hope this helps some people out! If someone wants to do a pull request to add other scripts, I'll be glad to add em!
p.s. My quad starts lifting off with a lift value of 25000-30000... HOLD ON TO THE THING if you put values in higher then 20000! It WILL launch itself into a wall otherwise...
https://github.com/JamesHagerman/Crazyflie_Python_Demos
The only script in there right now is a fixed-up version of the sample code at the bottom of this page:
http://wiki.bitcraze.se/projects:crazyf ... de_example
If nothing else, the "update" thread down at the bottom shouldn't be recursive.
I also added some input checking to make it not crash the app if you enter bad values along with code to detect "exit", "quit", "e", and "q" inputs to try and close everything down cleanly.
There seem to be a few bugs in the libraries themselves but since my version of libusb is also acting up I'm not quite sure what's going on.
Also, the only way I can get the script to run is to put the script into the lib/ directory of the client repo and run it from there. I don't know how to get the imports to work correctly otherwise.
So, I hope this helps some people out! If someone wants to do a pull request to add other scripts, I'll be glad to add em!
p.s. My quad starts lifting off with a lift value of 25000-30000... HOLD ON TO THE THING if you put values in higher then 20000! It WILL launch itself into a wall otherwise...