View Single Post
  #2   Spotlight this post!  
Unread 05-04-2011, 14:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help Needed please

Do you have an up-to-date copy of LabVIEW for FRC? Do you have anyone who knows anything about LabVIEW? What you're asking is indeed easy to do, and it shouldn't be hard to talk you through it.

You have two motors on each side? The default robot project is set up to use two-motor drive. You will need to replace that section in Begin.vi with four-motor drive, specify which PWM outputs go to each Jaguar, and verify the proper directions of each motor.

You want to use tank drive? The default robot project uses arcade drive. You will need to open a second joystick in Begin.vi, get its Y axis value in Teleop.vi, replace the arcade drive function in Teleop.vi with a tank drive function, and wire the appropriate Y axis joysticks to the drive function inputs.

You want to reduce power by half when either joystick trigger is pressed? You will need to unbundle the trigger values from the Buttons output of each joystick get function, "or" them together, and use the resulting boolean value to select either 0.5 or 1.0 as the input to a multiplication function on the Y axis values of each joystick.

You want to control a Spike relay from two joystick buttons and two limit switches? That's more involved. The way you describe the desired function, it isn't very complicated, but you need to specify exactly what you want the motor to do and exactly when you want it to do it. If you just want to run the motor while a button is pressed, with the limit switch preventing it from running too far, that's not hard at all. If you want the motor to start running when the button is pressed and keep running until it reaches the limit even if the button is released in the meantime, that's still not hard, but it is a little less straightforward.

Is that enough to start you in the right direction? How much hand-holding would you like? If you can itemize which pins on the Digital Sidecar your Jaguars, Spike, and limit switches are connected to, I can give you detailed directions on what to do.
Reply With Quote