I reccomend against doing something like that. 4183 tried it for our first regional last year and learned that it was nearly impossible to get fine control of our shooter speed due to the slop in the throttle. Before our second competition, we programmed the joysticks to control rate of change in speed rather than speed.
It's pretty simple code to write:
Code:
If speed-up button is pressed, shooter speed = shooter speed + constant
If speed-down button is pressed, shooter speed = shooter speed - constant
Other buttons can be used to stop the shooter or run it at preset speeds.
However, if your shooter works consistently at a range of speeds, the throttle might work fine.