|
Converting Joystick controls over to switches
I am not sure if it is too late to do this now that the robot has shipped but we were under the gun to get things
on our robot working and the operators didn't get adequate driving time.
What we noticed is that the operators are having a heck of a time getting "used to" the manipulator controls
that we set up with joysticks.
Is it possible (per the rules & between now and the competition) to construct a new controller box with
switches and then re-write the code to use this set up and use the fix-it window to tweak the code?
If this is within the scope of the rules, I would appreciate any info on how to accomplish this with switches.
What I especially need help in understanding is the following:
I plan to use some SPDT toggle switches (with off positions).
If I connect these switches to the X & Y pins on the joystick ports (port 3 & port 4 on our OI) and the switched
values are either +5v, ground, how do I simulate (set up the hardware) so that the off condition
is read by the OI as it currently is by the joystick as a neutral condition (127)?
Does this require some sort of a weak pullup (or a trimmer pot) on the switch common to obtain this
neutral condition (value 127)?
Please advise...
Thanks for the help!
|