Page 1 of 1

Huge dead zone in my joystick

Posted: Thu Feb 04, 2016 12:18 pm
by Analogy
I'm controlling my crazyflie using an RC controller in USB joystick mode. Under Windows and MacOS it behaves flawlessly, in the Bitcraze VM in CFClient there is a *gigantic* dead zone in the middle, like a good 10% of mid-stick. Is there a way to turn this off?

Re: Huge dead zone in my joystick

Posted: Thu Feb 04, 2016 12:35 pm
by Analogy
Never mind, found the dead band code in cfclient. It would be a good idea to expose this to the user.

Re: Huge dead zone in my joystick

Posted: Fri Feb 05, 2016 8:07 pm
by chad
Analogy wrote:I'm controlling my crazyflie using an RC controller in USB joystick mode. Under Windows and MacOS it behaves flawlessly, in the Bitcraze VM in CFClient there is a *gigantic* dead zone in the middle, like a good 10% of mid-stick. Is there a way to turn this off?
Just for my own curiosity, when you said it behaves flawlessly under Windows and MacOS X, did you mean that it works flawlessly with the CFClient running on those systems and it is different on the Linux system on the VM? Or, did you mean it works with other applications on those systems? It would be interesting to know if the deadband is the same in CFCLient running on MacOS X or Windows as it is on Linux...
Analogy wrote:Never mind, found the dead band code in cfclient. It would be a good idea to expose this to the user.
I think it's likely not exposed in the GUI because the CFClient was built around the idea that people would be using an Xbox or PS3/4 controller. Might be worth a feature request to make a an interface for adjusting that though. Logging it on GitHub might get it more attention.

Re: Huge dead zone in my joystick

Posted: Thu Feb 11, 2016 7:02 am
by Analogy
Oh, I meant that my joystick works flawlessly in mac and windows. I can't get cfclient to work in OSX and haven't bothered attempting Windows. After hacking the deadband out of CFClient in my Bitcraze VM it works great in there too.

Re: Huge dead zone in my joystick

Posted: Fri Feb 12, 2016 1:36 am
by chad
Analogy wrote:Oh, I meant that my joystick works flawlessly in mac and windows. [...] After hacking the deadband out of CFClient in my Bitcraze VM it works great in there too.
I see. Thanks!
Analogy wrote:I can't get cfclient to work in OSX and haven't bothered attempting Windows.
This is how I got it working on Mac OS X. PyQT has some refresh issues (switching apps forces a refresh to correct it) but I prefer running natively than through the VM myself. :)