View Single Post
  #1   Spotlight this post!  
Unread 20-02-2011, 21:06
Matthew Blake's Avatar
Matthew Blake Matthew Blake is offline
Registered User
FRC #3481 (Bronc Botz)
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Helotes, Texas
Posts: 43
Matthew Blake is an unknown quantity at this point
Potentiometer and Encoder Readings HELP

Hi all,

We are having trouble figuring out how to read the potentiometer and encoder data on the driver station. We are not sure if it has something to do with setting up the I/O (Configuring the Digital I/O).

We have in our code this statement that constructs the encoders:
m_LeftEncoder(4,3,4,4),m_RightEncoder(4,1,4,2)

Here is the line that gets the encoder values:
m_LeftEncoder.Get(), m_RightEncoder.Get()

Here is the line that gets the potentiometer values:
double raw value = (double) ds->GetAnalogIn(1);
__________________
FTC Team 4008: 2009-2012
FTC Team 4602: 2010-2012
FRC Team 3481: 2010-2012
Reply With Quote