View Full Version : How to program an arm?
Ian McShane
03-02-2011, 18:56
I have the 3 servo motors for the arm programmed in the begin vi, I have The second joystick programmed in the teleop vi, and the begin vi:cool: , now what.
bladetech932
03-02-2011, 19:03
Well you need to decide how you want to control your arm
1.buttons?
2.joystick?
3.telekinesis?
You need to give us some details so we can help you the best:D
Ian McShane
03-02-2011, 19:08
well it will have 3 degrees of freedom so 3 motors, (telekinisis would be nice:rolleyes: ) but one motor with the x axis, and the other 2 with 2 buttons each.
Ian McShane
03-02-2011, 19:13
We already have the arcade drive with the first joystick for the driving part programmed good, we just need the arm:D. I even have the 2nd joystick programmed into the teleop vi, i just need to know how to program the buttons and x axis to joystick.
bladetech932
03-02-2011, 19:31
1-ok, well First you are going to want to pull out the reference for your second joystick
2-Second you need to pull down a Get.vi
3-Third you need to get two unbundle by name functions from the Cluster,Class and Varient section
4-Wire the unbundles to the button and axis output
5-you need to create open.vi's for three motors (each one set to its pwm)
6-To make the motors move on a button you are going to need a case structure for each motor with the set speed.vi in the case structure set to the speed you want to move it
6-for the axis just wire axis one into a set speed.vi
If you are needing to learn the basics i suggest you watch the videos from here http://www.frcmastery.com/
Ian McShane
04-02-2011, 17:07
and this is all in the teleop vi?
bladetech932
04-02-2011, 17:10
Yes, sorry i would post a pic but snowed in without a programming computer
Ian McShane
04-02-2011, 17:13
np. by the way, how is your season going?
Ian McShane
04-02-2011, 17:17
and on step 6 i am confused, the other 5 i already got.
bladetech932
04-02-2011, 22:13
to get a motor to turn at a certain speed when using a button you put a motor set speed.vi in the true case of the case structure,then wire the unbundled button to the case condition. The false case needs to be a set speed.VI set to what you want the motor to do when the button isnt pressed
Ian McShane
05-02-2011, 10:25
wait, so i have step 2 in the 7 steps thing, now what?
Ian McShane
05-02-2011, 10:50
can you email me a diagram/picture?
Ian McShane
05-02-2011, 11:02
is it the set speed jaguar vi.
Ian McShane
05-02-2011, 11:30
and how do i wire the set speed?
bladetech932
05-02-2011, 11:56
Yes, The bundle data (pink wire) from the motor devref needs to be wired to the set speed and the speed value needs a constant in each case
Ian McShane
08-02-2011, 18:11
How do I program the drive rev to not be in the first 2 motors for the arm?
Ian McShane
08-02-2011, 18:28
And where is the set speed vi
tagayoff
08-02-2011, 20:40
Check out this real helpful menu guide courtesy of Team358.
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/LabVIEW-MenuTree2010.jpg
bladetech932
09-02-2011, 00:30
How do I program the drive rev to not be in the first 2 motors for the arm?
Could you explain what you mean here?
And where is the set speed vi
It is in the motor pallet in the WPI robotics Library
np. by the way, how is your season going?
Good except we lost a week due to weather!
is it the set speed jaguar vi.
Yes.
Ian McShane
10-02-2011, 17:08
Please explain or send diagram of how to wire it in and outside the of the case structer.
Ian McShane
10-02-2011, 17:13
and its a servo not motor.
Ian McShane
10-02-2011, 17:15
we should chat about this.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.