Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How to program an arm? (http://www.chiefdelphi.com/forums/showthread.php?t=90859)

Ian McShane 03-02-2011 18:56

How to program an arm?
 
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

Re: How to program an arm?
 
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

Re: How to program an arm?
 
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

Re: How to program an arm?
 
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

Re: How to program an arm?
 
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

Re: How to program an arm?
 
and this is all in the teleop vi?

bladetech932 04-02-2011 17:10

Re: How to program an arm?
 
Yes, sorry i would post a pic but snowed in without a programming computer

Ian McShane 04-02-2011 17:13

Re: How to program an arm?
 
np. by the way, how is your season going?

Ian McShane 04-02-2011 17:17

Re: How to program an arm?
 
and on step 6 i am confused, the other 5 i already got.

bladetech932 04-02-2011 22:13

Re: How to program an arm?
 
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

Re: How to program an arm?
 
wait, so i have step 2 in the 7 steps thing, now what?

Ian McShane 05-02-2011 10:50

Re: How to program an arm?
 
can you email me a diagram/picture?

Ian McShane 05-02-2011 11:02

Re: How to program an arm?
 
is it the set speed jaguar vi.

Ian McShane 05-02-2011 11:30

Re: How to program an arm?
 
and how do i wire the set speed?

bladetech932 05-02-2011 11:56

Re: How to program an arm?
 
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


All times are GMT -5. The time now is 10:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi