Stick Drift

Does anyone have a solution to stick drift?

I assume you are asking about the controller joysticks not going back to the center when let go. A solution to this would be coding a button on the controller so that it calls the place the joystick is at the time the center, and tells you with how much it was offset. You can use this data in your drive code (or anything else you are using the joystick for) to counter the joystick drift.


The most common method is to create a dead zone by ignoring joystick absolute values less than 5 or so.


you could try this

my controller has been sticking slightly too. almost drove off a table last week


if the joystick seems to be going back to the center but the values are off we had success with using the calibration on the controller. (Turn on the controller → settings → calibration)