|
Re: Free Wiring Diagram!
Quote:
Originally posted by Mike Alighieri
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
|
yeah, we used one of those too, but just fpr left, right, normal, and extended autonomous modes
__________________
...What is a man,
If the chief good and market of his time
Be but to sleep, and tool? A nerd, no more.
2004 UTC New England #2 seed
2004 UTC New England Champions with 716 & 230
2004 Archimedes #2 seed, undeafeated in Qualifiers (for what its worth)
Jake
Team Paragon #571
|