[SOLVED]Input devices problems
Posted: Sat Jun 24, 2017 8:02 am
At the begining, I used wireless xbox360 to pilot my cf2.
Following wiki, I blacklisted xpad (and joydev) to install xboxdrv. All things went satisfactorily. But xbox 360 is not a very precise device. Later, I had some problems with xboxdrv and discover that last version of xpad driver was also running xbox system.
And then things were awful. The device disappeared from /dev/input.... I tried by all possible methods to overcome the problem. Crazyflie clients and firmware have nothing to do with the difficulty. Neither does the xpad driver. Whatever I do, I never obtained jsx device in /dev/input. My feeling is that the Microsoft receiver and the joystick divorced...
GRRR....
Then I bought another joystick, namely UnderControl PS3, usb wired. A very cheap joystick, approximately 10€.
As for xbox360, PS3 joystick has nearly no documentation. I used a config input file found in crazyflie client, PS3_mode 2. But it was nearly impossible to control the flight. It looks as if the axis deliver two states only, 0 and full throttle. Finally, I suceed, I do not know how, the CF2 was flying slowly to the left so I made a correction to go right. The cf2 went away at high speed to the right, this was correct, but I could not stop it and the flight ended in my pond, five meters far. cf2 is dead: no more VCOM.
I POST THIS SAD STORY, because, due to the lack of documents, It is by chance that I discovered you have to press 10 seconds on the "home" button to shift axis from digital to analog output.... Now, it's OK, too late.
GRRR...
So WARNING: my SIXAXIS system is not an analog joystick when powered on! Needs to press 10 seconds the "home" button.
Furthermore, this joystick is a rough one. On axis, effective control is only between 30 an 70% of the run of the axis. It seems that there is no way to have better behavior.
Jean-Claude
Following wiki, I blacklisted xpad (and joydev) to install xboxdrv. All things went satisfactorily. But xbox 360 is not a very precise device. Later, I had some problems with xboxdrv and discover that last version of xpad driver was also running xbox system.
And then things were awful. The device disappeared from /dev/input.... I tried by all possible methods to overcome the problem. Crazyflie clients and firmware have nothing to do with the difficulty. Neither does the xpad driver. Whatever I do, I never obtained jsx device in /dev/input. My feeling is that the Microsoft receiver and the joystick divorced...
GRRR....
Then I bought another joystick, namely UnderControl PS3, usb wired. A very cheap joystick, approximately 10€.
As for xbox360, PS3 joystick has nearly no documentation. I used a config input file found in crazyflie client, PS3_mode 2. But it was nearly impossible to control the flight. It looks as if the axis deliver two states only, 0 and full throttle. Finally, I suceed, I do not know how, the CF2 was flying slowly to the left so I made a correction to go right. The cf2 went away at high speed to the right, this was correct, but I could not stop it and the flight ended in my pond, five meters far. cf2 is dead: no more VCOM.
I POST THIS SAD STORY, because, due to the lack of documents, It is by chance that I discovered you have to press 10 seconds on the "home" button to shift axis from digital to analog output.... Now, it's OK, too late.
GRRR...
So WARNING: my SIXAXIS system is not an analog joystick when powered on! Needs to press 10 seconds the "home" button.
Furthermore, this joystick is a rough one. On axis, effective control is only between 30 an 70% of the run of the axis. It seems that there is no way to have better behavior.
Jean-Claude