Page 1 of 1

Need Help On Using python to run crazyflie

Posted: Wed Dec 10, 2014 2:25 am
by AbandonedVirgo
Sup People

Recently I just gotten my final year project which is on crazyflie. I'm totally new to this crazyflie thingy and still working on it. But my profes in school want me to run this crazyflie with python instead of using the crazyflie pc client. So I really not sure how to write/read a protocol which im totally new to programming as well. The course I'm studying its Aerospace System & Management which usually study about the mechanical part of the airplane and structure. Theres like no related course to what im study and this project. So I greatly need someone whom can help me find the protocol for basic crazyflie to work.

Furthermore this few days I've been researching on how use python those simple function, but I think im still far behind of what I should know.... But anyway I find some protocol online https://github.com/bitcraze/crazyflie-c ... r/examples but it dont really run soomthly for me. So I really need help. Im using python v3.4 & v2.7

Problem * Getting started to connect crazyflie to python(Via using the protocol from the link, scan.py) how do I change the import path? to my own directory
Need solution!

Thanks And Best Regards
Virgo

Re: Need Help On Using python to run crazyflie

Posted: Wed Dec 10, 2014 3:34 am
by whoenig
You will need to use python 2.7 in order to use the Bitcraze SDK.
You can change the path on line 33 in scan.py.

Re: Need Help On Using python to run crazyflie

Posted: Wed Dec 10, 2014 4:42 am
by AbandonedVirgo
whoenig wrote:You will need to use python 2.7 in order to use the Bitcraze SDK.
You can change the path on line 33 in scan.py.
what do I change to? because I cant run without changing it, it appear to have syxtax error

Re: Need Help On Using python to run crazyflie

Posted: Wed Dec 10, 2014 9:55 pm
by whoenig
You would change it to something like:

Code: Select all

sys.path.append("C:\\Path\\Where\\SDK\\is")
Another option is to change your PYTHONPATH environment variable to include the folder wherever you have your SDK installed.