View Single Post
  #1   Spotlight this post!  
Unread 13-01-2009, 17:11
the_waterboy the_waterboy is offline
Registered User
FRC #1095
 
Join Date: Feb 2008
Location: Chatham, VA
Posts: 7
the_waterboy is an unknown quantity at this point
Slow acceleration (LabView)

Our team is trying to code our robot to accelerate slowly, regardless of the joystick's position(The driver slams the joystick full forward, but the robot takes off slowly). We are doing this to keep the robot from spinning the tires on the slick floor and hopefully to gain better traction at take-off. We are using the Get Motor subVI, Set Motor, and Get Joystick. We subtract the value of the motor from the value of the Joystick, divide the result by a set number(currently 10,000), add this quotient to the motor value, then set the motor to that value. We are quite sure that Get Joystick, Set Motor, and Get Motor all use decimal values from -1.0 to 1.0, but if someone knows otherwise, please tell us. The code works when the joystick is being pressed in one direction, but not when it is being pressed in the opposite direction. We have also noticed that the motor is in the deadband until it reaches the maximum value. If anyone has any information on creating a code like this, please speak up, as it has halted our coding from going any farther for the time being.
__________________
So what if I'm crazy?
Reply With Quote