Log in

View Full Version : Start method for encoders


rawrpenguinlion
13-02-2015, 17:58
Last year there was a method called Start() in encoder.cpp that allowed us to start our encoders and begin to receive values. This year, the Start method is completely gone and doesn't show up on WPI's deprecated list. When we try and use the getter method for our encoders, nothing is being printed. We were wondering what is being used in replacement for the Start method in 2015. Thanks. We're using c++ by the way.

Tom Bottiglieri
13-02-2015, 18:01
Nothing. You do not need to explicitly start an encoder.

rawrpenguinlion
13-02-2015, 18:08
For some reason when we use a standard getter there is nothing being print out at all. Not even a zero. Do you know what this could be?

Tom Bottiglieri
13-02-2015, 18:19
For some reason when we use a standard getter there is nothing being print out at all. Not even a zero. Do you know what this could be?
The get() method returns an int, so this seems like an issue with the print statement. How are you trying to print? Is that code being called as expected?

Joe Ross
13-02-2015, 21:24
This year, the Start method is completely gone and doesn't show up on WPI's deprecated list.

Not sure what list you're looking at, but it is documented here: http://wpilib.screenstepslive.com/s/4485/m/13810/l/292213-c-java-porting-guide-2014-to-2015