[SOLVED]cfheadless

Post here to get support
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

[SOLVED]cfheadless

Post by Mitteau »

Hy
I tested cfheadless
Xubuntu 15.10. Xbox360 with ad'hoc json file. Last Python client.2019.09
The commands for the LED ring are OK with cfclient but do not function with cfheadless.
Thank you.
Regards
Jean-Claude
Last edited by Mitteau on Mon Apr 18, 2016 10:36 am, edited 1 time in total.
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless-Trim

Post by Mitteau »

Hello !
Trim command also looks inactive with cfheadless ?
Regards
Jean-Claude
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

If I understand correctly Python+Qt4, cfheadless does know alt1 neither alternative function nor trim adjust by input device.
Thank you for confirmation.
Regards
Jean-Claude
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: cfheadless

Post by marcus »

Hi!

The trimming for roll/pitch should work in cfheadless (otherwise it's a bug, see code here) but the alt1/2 callbacks aren't added. You could add callbacks pretty easy, using similar code as the client.

But since there's no way to configure the controller in the headless client you will have to already have set up the buttons for trimming/alt in the client and make sure to use the correct configuration.
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

Thanks Marcus

No problem with the controller for I make my own .json file which works correctly with cfclient.
I look at the software and send a comment.
Regards
Jean-Claude
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

Hello Marcus
These are the differences between my file and the one you indicate me:
1/ my file contains an "import sys" wich disapperars
2/ I have not "import cfclient"
Remaining code looks the same.
I download "crazyflie-clients-python-2015.09" from Github.
Regards
Jean-Claude
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

Hi
In Python3 interpreter, situated in .../cfclient/utils/input, import cfclient in __init__.py seems not necessary.
True ?
Jean-Claude
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: cfheadless

Post by marcus »

Hi,

I'm note sure about the __init__ in Python 3. But it's best to start from the latest revision on the develop branch in the repository. The version 2015.09 is a bit old and lots of things have changed.
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

Hin thanks, I will test it when my copter will be back.
Regards
Jean-Claude
Mitteau
Expert
Posts: 248
Joined: Fri Jan 29, 2016 6:00 am

Re: cfheadless

Post by Mitteau »

Hi
How can I know the version of the python client and the cf-firmware ?
Sincerely
Jean-Claude
Post Reply