View Single Post
  #6   Spotlight this post!  
Unread 06-03-2012, 21:27
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

Quote:
Originally Posted by Doug Norman View Post
According to eStop Robotics, that board gets read as a joystick input on your robot. For the Joystick Open VI, choose the JoystickDevice input to match the location of your eStop CCI on the Driver Station Setup tab. For example, if your CCI is in location 2 on the DS, then your JoystickDevice input would be USB 2 in the robot code.

There is another alternative you could use. On the I/O tab of the DS, when it is set to Compatible Mode, you will see Analog Input sliders. You could read these instead of an external potentiometer. In this case you would read the values on the robot using the WPI Robotics Library>>DriverStation>>Compatibility I/O>>WPI_DriverStationGet Analog Input.vi. Then you would scale it accordingly to drive your motor.
Would the analog input(like a potentiometer) then act as a joystick and the digital inputs act as buttons on the joystick vi's? That seems to be my understanding.
__________________
Reply With Quote