Quote:
Originally Posted by team877
Can anyone just make one of these programs and make a printscreen.
I'm desperate to figure this out and so far i've been unsuccessful.
I need to use a joystick button to engage a relay forward, and reverse, and off....Please help!
|
Ok, I whipped up something as an example. I haven't had a chance to test this code on our base so there's no guarantees, but as far as the general idea goes I think its a good example.
Usually I would just post a screenshot and explain in the post, but since there's cases inside of cases I wouldn't be able to show you everything without a screenshot for every possible combination, so Instead you can just download the code. (I'll attatch it to this post) I have comments in the code that explain everything I did and why. I don't know that this is the best or most efficient way to do what you are trying to do, but it is one solution. If you have and questions about the code feel free to ask! And if you find any errors please let me know!
- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit
our website!)
Team Role: 3 Years as Driver - College Student/Mentor!
Freebird Robotics - On a 1 year hiatus! (Visit
our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "
Driving Tomorrow's Technology" Award