Dear folks,
this is my first post in this forum.
I have ordered the Crazyflie 2 a few weeks ago, so at the moment everything i am doing is sort of a "dry run".
I am using an Opensuse 13.1 with the actual (downloaded today from https://github.com/bitcraze/crazyflie-clients-python) python client.
Today the PS3 controller arrived, so i tried to use it with the python client.
While the mapping i found that the left analog stick x-axis can´t be mapped to any of the roll/pitch/yaw/thrust axis.
My first idea was that the controller was broken so i tried it with windows and motioninjoy.
But the controller is fine and the crazyflie client is working with windows.
Back to linux i tried different USB ports (3.0 and ordinary 2.0 ones) and cables but without an improvement.
All other sticks an buttons are working just fine.
while starting the client i get a warning "ImportError: No module named pyqtgraph" but i don´t think this is related.
So dose anyone have a good idea ?
PS3 OpenSuse Mapping [SOLVED]
PS3 OpenSuse Mapping [SOLVED]
Last edited by Malte on Sat Dec 06, 2014 8:12 am, edited 3 times in total.
Re: PS3 OpenSuse Mapping
For the import error: You need to download and install pyqtgraph from here http://www.pyqtgraph.org/ (not available as part of most distributions as package). It is required for the Plot tab in the GUI to plot/export the sensor data.
I am not sure about the PS3 controller. You should try to use different software to make sure that it is not an issue with the python client. For example, jstest-gtk can be used.
I am not sure about the PS3 controller. You should try to use different software to make sure that it is not an issue with the python client. For example, jstest-gtk can be used.
Re: PS3 OpenSuse Mapping
Thanks,
I have installed the pyqtgraph and the warning is gone.
And i have installed the jstest-gtk but there is everything working just fine.
So i think this problem is related to the python client.
With my notebook (lenove x121) and Opensuse it is the same problem via USB
but via bluetooth its working.
So i have tried to copy the (workin) .json file from the notebook to the desktop.
The client on the desktop uses the .json file but the axis is still not working.
It looks like this axis won´t be recognized at all.
I have installed the pyqtgraph and the warning is gone.
And i have installed the jstest-gtk but there is everything working just fine.
So i think this problem is related to the python client.
With my notebook (lenove x121) and Opensuse it is the same problem via USB
but via bluetooth its working.
So i have tried to copy the (workin) .json file from the notebook to the desktop.
The client on the desktop uses the .json file but the axis is still not working.
It looks like this axis won´t be recognized at all.
Re: PS3 OpenSuse Mapping
You can try to switch to the pygame backend. For that, open crazyflie-clients-python/lib/cfclient/utils/joystick/__init__.py and remove/comment out lines 33 to 39.
Re: PS3 OpenSuse Mapping
I can´t find this path in the installed client (/usr/cfclient).
But in the git repo is this file and i changed it like you said.
After that i have run the setup.sh to install the changed version.
But the error keeps the same.
But in the git repo is this file and i changed it like you said.
After that i have run the setup.sh to install the changed version.
But the error keeps the same.
Re: PS3 OpenSuse Mapping
This is really strange. You can try to see if it works with a custom pygame joystick script. For example the one here: http://yameb.blogspot.com/2013/01/gamep ... ython.html. Just a step to figure out if it is an issue with the bitcraze client or not.
Re: PS3 OpenSuse Mapping
This script is relay nice. I had to change the length of the array but now it is working.
And the funny thing is that the axis won´t be recognized.
All buttons and axis are working but i can´t get a signal for the left stick x-axis.
So it looks like something more deep like a driver problem.
--------------EDIT--------------
i´ve tried to install the new Cfclient version: 2014.01.0-51-gdf11969
and with this version everything is working just fine.
And the funny thing is that the axis won´t be recognized.
All buttons and axis are working but i can´t get a signal for the left stick x-axis.
So it looks like something more deep like a driver problem.
--------------EDIT--------------
i´ve tried to install the new Cfclient version: 2014.01.0-51-gdf11969
and with this version everything is working just fine.