Free Wiring Diagram!
OK, so, we got autonomous this year! Well, if you're like me, it's hard to decide on one autonomous program to run. Especially if you haven't talked with your alliance partner. So, we got this solution... at radioshack, you can buy a little double-pole rotary switch with 6 positions. It took awhile, but I figured out how to wire it together so it only uses 3 inputs. Then just use some code to assign each input to one bit in a variable, and when you turn it it counts from 0 to five in binary. Great for last-minute program selection! Just code it so it branches the program according to the variable. If anyone would like the wiring diagram and/or the code for it, let me know and I'll see what I can do.
Good stuff,
Mike Alighieri
|