|
Re: I need lots of help...please help
For a button:
1. Open a Joystick (WPI Robotics Library ->RobotDrive ->Joystick-> Open.vi)
2. Create constant, select joystick port.
3. Where you want the Relay to run, place Joystick Get (Same place)
4. Right click next to it and make an Unbundle by Name (Programming-> Cluster, Class,...->Unbundle By Name).
5. Wire the unbundle by name into where it says Buttons in the Get.
6. Select which button you want.
7. Wire the Boolean output of the button into a case structure.
8. In the "True" Case, put the Set Relay and set it to move (whatever direction you choose).
9. In the "False" Case, put another Set relay and set it to off.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams
5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)
We have blades on our robot?! ***sweeeeeet***
There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Last edited by paulcd2000 : 15-02-2009 at 17:46.
Reason: Adding pics
|