Crazyflie API and python development
Posted: Wed Jul 15, 2015 5:25 pm
Hello All,
I recently got a crazyflie 2.0 and after a few days playing with it, I would like to develop some client code. I am working in windows 7, as in the VM 0.6 the radiolink was not working properly at the beginning, but can try to switch back if required. I have some background on C++, C# but not exactly in python, so although I have checked the API and tutorials I am not able to understand all the functions underlaying the API.
For the moment, I have been able to open with PyQt the cfclient source code, mainly the UI files, and more or less understood some of the code associated with the "py" files but I have two basic questions to move further on:
1) Once modified some UI file in PyQt to change the layout (let say add a button and wanting a onclick event for example). Should I add the code manually into the source "py" with the onclick event? I don't get how to add what in Qt is called the "signals" in the PyQt Designer and link it with code in the "py" source. Any advice?
2) Is any way I can get more documentation from the API? I have not manage to get all the functions, members and variables that are written in the library, but in the source code of cfclient there is a lot of code that I imagine was written knowing exactly how the API worked.
Any advice on how to "tweak" the "cfclient" source code to change the layout and code would be appreciated, as I want to develop a simpler interface and not able from scratch due to crazyradio not detecting directly crazyflie (see my other post in crazyradio support for this issue).
I recently got a crazyflie 2.0 and after a few days playing with it, I would like to develop some client code. I am working in windows 7, as in the VM 0.6 the radiolink was not working properly at the beginning, but can try to switch back if required. I have some background on C++, C# but not exactly in python, so although I have checked the API and tutorials I am not able to understand all the functions underlaying the API.
For the moment, I have been able to open with PyQt the cfclient source code, mainly the UI files, and more or less understood some of the code associated with the "py" files but I have two basic questions to move further on:
1) Once modified some UI file in PyQt to change the layout (let say add a button and wanting a onclick event for example). Should I add the code manually into the source "py" with the onclick event? I don't get how to add what in Qt is called the "signals" in the PyQt Designer and link it with code in the "py" source. Any advice?
2) Is any way I can get more documentation from the API? I have not manage to get all the functions, members and variables that are written in the library, but in the source code of cfclient there is a lot of code that I imagine was written knowing exactly how the API worked.
Any advice on how to "tweak" the "cfclient" source code to change the layout and code would be appreciated, as I want to develop a simpler interface and not able from scratch due to crazyradio not detecting directly crazyflie (see my other post in crazyradio support for this issue).