Need Help On Using python to run crazyflie

Post here to get support
Post Reply
AbandonedVirgo
Beginner
Posts: 6
Joined: Mon Dec 08, 2014 5:52 am

Need Help On Using python to run crazyflie

Post 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
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: Need Help On Using python to run crazyflie

Post 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.
AbandonedVirgo
Beginner
Posts: 6
Joined: Mon Dec 08, 2014 5:52 am

Re: Need Help On Using python to run crazyflie

Post 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
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: Need Help On Using python to run crazyflie

Post 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.
Post Reply