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:
Here is the line that gets the encoder values:
Here is the line that gets the potentiometer values:
double raw value = (double) ds->GetAnalogIn(1);