Re: HELP! 15 year old new programmer! Joysticks confusing me!!
First we are programmers we can do anything
Ok heres what to do and if you have questions please ask
1.open a new VI
2.in begin you need to open the 4 motor drive,solenoid,joystick 1, joystick 2 and if you are using a compressor open that also
3.you need to send the opens to teleop with the reference VIs(with the picture of the arrow pointing toward the document) for each of those things name the string accordingly
4.close and save Begin
5. in telop you need to bring out the reference(The same reference but with the arrow pointing away from the document) for the things that you opened
6.you need to grab the Get axis VI from the joystick pallet and place one for each joystick wiring the brown wires up specify the axis to 2 which is the Y axis the number coming out of the get axis on the right is the value of the joystick
7.next put a tank drive VI from the robot drive pallet and wire the joystick values into the left and right of the tank drive VI
8.next the solenoid put in a case structure and put a set vi from the solenoid pallet in each case(true and false) now the green input is where you put a constant true in the true case, false in the false case
9.you have no condition for the vi so you need to put in a get raw from the joystick pallet, wire the brown wire from which ever joystick to the get raw then get a unbundle by name function from the cluster class and variant pallet and wire the buttons output from the get raw to the left side of it
now it will list buttons 1-12 wire Three into the condition of the solenoid case
10.close teleop and save now go to finish and put in a reference (The same one from Teleop) and wire the reference to a corresponding close
Also what purpose are you limiting the motors their may be a better way to do what you want
and what are you running the solenoid off of a relay or of the C-rio
Again please ask questions as i am doing this from memory!
__________________
Expect the best, Prepare for the worst
Last edited by bladetech932 : 17-03-2010 at 01:39.
|