Lag before strafing/switching Joystick axis

Our robot is a direct drive Mecanum chassis robot, and we have noticed weird phenomenon where when you switch axes on the controller, i.e. 4 (y) to 3 (x), in order to strafe, the joystick will lag/not register it, and you have to center the joystick before moving it on the x axis in order to strafe. We are using up to date 2.0 Vexnet keys and it’s happened in multiple settings, so I’m pretty sure it’s not due to interference, and we noticed a similar problem with a different joystick and different robot, where you cannot change axes easily without centering the joystick.

We’ve noticed that as well, but it happens very infrequently after updating firmware. Never did find an effective fix though.

Have you tried calibrating the joystick? See the VEXnet Joystick Calibration procedure at http://curriculum.vexrobotics.com/appendices/appendix-2.

If that doesn’t work, are you sure that it’s not a code issue? Have you tried sample code? What if you use only the x-axis on the joystick (i.e., temporarily change the mapping in your code)? Does this happen with other joysticks?

I am using a slightly tweaked version of the samlle mecanum code

But I will try calibrating the joysticks

The Joystick Calibration solved it, thanks.