[SOLVED] Python client

Post here to get support
Post Reply
Ziboul
Beginner
Posts: 8
Joined: Tue Nov 17, 2015 11:51 pm

[SOLVED] Python client

Post by Ziboul »

Hello, have a nice 2016 year !
I use the python client to control crazyflie2.0 v. 2015.09.
But I have no access to altitude control button. Is that normal ? I would like to use the hover capability.
Another point : I did not find source for this client in github. Is not it possible to have access to this source ? Or perhaps I went to the wrong place.
Z.
Last edited by Ziboul on Thu Jan 14, 2016 8:51 am, edited 1 time in total.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Python client

Post by chad »

Ziboul wrote:Hello, have a nice 2016 year !
Thanks! May you have a great one as well!
Ziboul wrote:I use the python client to control crazyflie2.0 v. 2015.09.
But I have no access to altitude control button. Is that normal ? I would like to use the hover capability.
I've always seen those greyed out. I've never investigated further though. If you want use the "altitude hold" feature, that can be mapped to a controller button. In the python client:
1) Click the "Input device" menu.
2) Select "Configure device mapping" menu item.
3) Click the "Configure" button on the upper-right of the "Input device configuration" window.
4) Click the "Detect" button next to the checkbox label "Altitude hold" and then press a button on your controller to map it.
5) Hit the button on your controller again and you should see the checkbox next to "Altitude hold" get checked. Your button is mapped.
6) When flying, once you reach the altitude you want, hold down the button you mapped.

You can let go of the thrust and the Crazyflie will maintain (roughly) the same altitude while the controller button is pushed. Keep in mind variables such as pressure changes, air disturbances, ambient temperature, and direct sunlight can affect the ability of the Crazyflie to maintain altitude. It will not be exact all the time. You'll see some rises and falls. But overall, it will maintain it's altitude.

If these instructions are not clear, you can find a guide for mapping the controller buttons on the wiki.
Ziboul wrote:I did not find source for this client in github. Is not it possible to have access to this source ? Or perhaps I went to the wrong place.
Z.
The source for v2015.09 client is here on the "Releases" page at GitHub.
The latest source is here in GitHub.

Hope this helps!
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Ziboul
Beginner
Posts: 8
Joined: Tue Nov 17, 2015 11:51 pm

Re: Python client

Post by Ziboul »

Hello, chad, thank you for hint.

I marked as SOLVED but i have to say :

1/ At the beginning, I had not understood how was defined Python GUI client. Now it is OK. Actually, I succeed to connect Xbox wireless. But I can't use the configuration tab of the GUI application. It does not work in my case. I wrote directly a json file, all goes fine except the ring effect command, but this is another problem. If you are interested I can send you my new file called Ziboul.json.

2/ I can switch toward hover mode through Xbox. All is fine except that nothing appeared in the Flight Tab. ASL window remained greyed. So, I had to modify python definition of FlightTab.py, line 382, writing "Set" in place of "Not Set".

I will inform on my tests in hover mode. But actually I need new motor support and motors and can't fly. Unfortunately french shop "La Drone" is out of stock. I will also ask about LED-ring effect in another post.

Z.
Post Reply