Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a dead zone configuration for controllers #245

Closed
krichardsson opened this issue Mar 31, 2016 · 7 comments
Closed

Add a dead zone configuration for controllers #245

krichardsson opened this issue Mar 31, 2016 · 7 comments

Comments

@krichardsson
Copy link
Contributor

Some joysticks/controllers have noise in the values which might cause drift over time. One solution would be to add a dead zone in which the input is ignored.

Preferably the zone should be configurable.

Related to #47

@tlwmdbt
Copy link

tlwmdbt commented Mar 31, 2016

In Windows 7 the standard Joystick helper programs deadzone configuration is over ruled by the Crazyflie client. I have heavy noise on my new Joystick and my Xbox Controller is unusable. I cannot start the Crazyflie without drifting heavily to the noise middle. A deadzone control would really be appreciated. It's not just an overtime effect for me. I cannot use it like this. My XBox Controller has a neutral position somwhere between -/+ 10 in the X and Y axe (I cannot fly straight up).

@Mitteau
Copy link
Contributor

Mitteau commented Feb 25, 2018

Yes, very useful because the precision of a joystick is highly variable, around null position. Very easy to implement.

@Mitteau
Copy link
Contributor

Mitteau commented Feb 28, 2018

I am testing the implementation, see my branch "nexon" from a fork of python client. My repo is Mitteau/... Do I ask for a request to pull? I use also an xbxo360 controller. My dead zone is +- 0.08. A dead band is very confortable for stationnary flight and progressive take off.

@Mitteau
Copy link
Contributor

Mitteau commented Mar 1, 2018

Bug if there is no input map...

@Mitteau
Copy link
Contributor

Mitteau commented Mar 1, 2018

Looks OK now...

@Mitteau
Copy link
Contributor

Mitteau commented Mar 4, 2018

Pull request proposed.

@krichardsson
Copy link
Contributor Author

Implemented in #332

@krichardsson krichardsson added this to the next_release milestone Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants