So I have been on my FRC team for four years. This is my first year actually programming. In previous years I have helped with awards and public relations. We have an arm for the FRC 2011 LOGOMOTION. I have programmed for the basic drive. I am having a problem programming the motors, so that when a button is pressed it spins one way and when another button is pressed it spins another. How do I go about doing that?
See attached image.
**
You could also use two case structures, one inside the other, each controlled by a button on your controller. The only trick is that there is one case where both buttons are pressed. In that case you could either have the motor stop or continue in one of the two directions, but practically speaking, this isn’t a big deal.