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);