|
Using a button to make controls flip
I'm not really sure what to ask, so I'll try to explain what we want to do.
We went with mecanum drive this year. Basically, we want to be able to press a button, and it flip all of our drive controls. So, for instance, when button has not been pressed, controls would be Forwards/Back, Strafe Left/Right, Rotate Left/Right. After the button was pressed, it would be Back/Forwards, Strafe Right/Left, Rotate Right/Left.
I'm pretty sure we can achieve this with something alone the lines of a True/False case structure, but I wanted to be able to press a button to activate it, and press that button (or another, it doesn't matter) to deactivate it, and I'm not sure how to accomplish that.
Thanks in advance, please ask questions if I was unclear on what I was asking.
__________________
[*img]http://i.imgur.com/B28M0CX.jpg[/img*]
|