View Single Post
  #2   Spotlight this post!  
Unread 21-02-2011, 17:32
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: speed change in teleop

Which motor do you want to change speed of? I see Joystick 1 tied to two different motor definitions. This alone is a problem. You need only one of them. Make sure whatever one you choose has also been defined in the 'begin.vi'

You have motor definitions for 'arm' and 'hand' and are controlled from buttons on Joystick 1. You have the motor speed hardwired for both at .125. Are these the ones you want to change the speed of? You can just change the value of .125 to another value between 0 - 1. This of course is hardwired though and can't be changed while the program is running. You could tie another Joystick to these axis if you need variable control while code is running.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote