Edit: after using the calibrate function on the controller, the sensor values have become correct. However, the code still acts just as if the sensor values were wrong. Is the controller defective? Can the VEX Staff please provide an answer?
In this example 5 would be your deadband value. This makes it so that if the joystick is greater than 5, the drive motors will respond to the joystick value and if the joystick is less than 5 the drive motors won’t move.
Obviously the above code won’t work out of the box and you should try and expand on that quite a bit but that’s the basic concept. Hope this helps