Sloppy joystick (Xbox)

Joystick will not return to zero … using left joystick on Xbox controller it will not return to zero upon release… ( motors still running) … Any coding help (labview)

Here are two examples of a joystick deadband:
http://www.team358.org/files/programming/ControlSystem2015-2019/labview/index.php#JoystickDeadband

Another option is re calibrating your joystick in the windows joystick settings. Just search for “joystick” and it’ll be there. You can then select the joystick, and re calibrate it for it’s extremes as well as it’s center.

Trying to figure out how to post a screen shot…???

This is how I solved that problem. Everything between -.15 and .15 doesn’t exist and the value starts at 0 and scales its way up so the joystick value starts at 0 and maxes out at 1.

It says tank but it works for any type of base.

Leeway_Calc_Tank.vi (6.93 KB)


Leeway_Calc_Tank.vi (6.93 KB)

I found that with the Microsoft XBox controllers from FIRST Choice there seemed to be an actual mechanical issue, where upon release of the thumb stick it would ‘stick’ to a point that is not quite center. Moving that joystick would recenter it - or not. So a deadband would work, but recalibrating would not (which point would it choose as ‘center’?).

We received two joysticks from FIRST Choice, and both of them have this behavior, just on a different axis. I don’t have data to back this up, but my observation these sticks are more inconsistent than our previous xbox controller, and simply increasing the deadband only makes driving more difficult.

we just bought 2 new xbox controllers and both of them have the same problem… they won’t go back to center…tried calibrating them in windows but it didn’t help… the joy stick is actually sticky… and returns to a different spot every time… any ideas on how to correct this mechanical issue?

I would suggest using a different brand. I have a afterglow 360 controller and other than the expected play that makes it so its never perfectly centered it has no issues. The code i posted above was used in combination with this controller last season and worked perfectly.

What type of controller does anyone recommend?