Answered: PWM IN Granularity

When I connect a servo to the Vex controller and run it with the joystick, the movement is visibly discontinuous. I just set up a little printf statement in the default code to look at the pwm_in numbers and it looks like the input from the joystick jumps about 5 units at a time instead of the 1 at a time I’m used to seeing on the larger FIRST units. That means that the whole 0-255 range is divided into only 50 steps. Is this correct behavior on a Vex? If so, is there anything to do to increase the resolution of the joystick? It would be very useful for steering, camera control, etc. to have the other 5x steps.

Thanks,

Mark McDade

Yes, the resolution of the Vex System is not as good when compared with the full size FRC Control System. This was one of the cost trade offs. You can not increase the resolution of the joystick but you may be able to reduce some of the discontinuous movement by filter-averaging the data in the Vex Controller.