|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
, now what. |
|
#2
|
||||
|
||||
|
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 ![]() |
|
#3
|
|||
|
|||
|
Re: How to program an arm?
well it will have 3 degrees of freedom so 3 motors, (telekinisis would be nice
) but one motor with the x axis, and the other 2 with 2 buttons each. |
|
#4
|
|||
|
|||
|
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
. 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. |
|
#5
|
||||
|
||||
|
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/ Last edited by bladetech932 : 03-02-2011 at 19:33. |
|
#6
|
|||
|
|||
|
Re: How to program an arm?
and this is all in the teleop vi?
|
|
#7
|
||||
|
||||
|
Re: How to program an arm?
Yes, sorry i would post a pic but snowed in without a programming computer
|
|
#8
|
|||
|
|||
|
Re: How to program an arm?
np. by the way, how is your season going?
|
|
#9
|
|||
|
|||
|
Re: How to program an arm?
and on step 6 i am confused, the other 5 i already got.
|
|
#10
|
||||
|
||||
|
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
|
|
#11
|
|||
|
|||
|
Re: How to program an arm?
wait, so i have step 2 in the 7 steps thing, now what?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|