Huge dead zone in my joystick

Post here to get support
Post Reply
Analogy
Beginner
Posts: 19
Joined: Fri Oct 24, 2014 6:55 am

Huge dead zone in my joystick

Post 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?
Analogy
Beginner
Posts: 19
Joined: Fri Oct 24, 2014 6:55 am

Re: Huge dead zone in my joystick

Post by Analogy »

Never mind, found the dead band code in cfclient. It would be a good idea to expose this to the user.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Huge dead zone in my joystick

Post 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.
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.
Analogy
Beginner
Posts: 19
Joined: Fri Oct 24, 2014 6:55 am

Re: Huge dead zone in my joystick

Post 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.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: Huge dead zone in my joystick

Post 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. :)
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.
Post Reply