View Single Post
  #7   Spotlight this post!  
Unread 07-03-2012, 18:38
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Re: Programming Potentiometer for Shooter

Ok so I have had success with programming this. Essentially what I did was in Teleop called the joystick vi's like you normally would when you want to do tank drive or other joystick related things and set the axis 1 as the shooting axis. The reason why I choose axis 1 is because on the board the analog inputs it gives you are call X, Y, Z, R. I assumed they all followed the the same in LV. This worked with great success but the problem I have is that when you turn the POT, you have a neutral position(zero position) where the shooter motor is not running and when you turn the knob to one side it goes forward and the other side spins the motor in reverse. Is there any way where I can take the values from from one extreme and use this as my starting position where the motor spins forward and increases the speed as you turn the knob?
__________________
Reply With Quote