Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Start method for encoders (http://www.chiefdelphi.com/forums/showthread.php?t=134527)

rawrpenguinlion 13-02-2015 17:58

Start method for encoders
 
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

Re: Start method for encoders
 
Nothing. You do not need to explicitly start an encoder.

rawrpenguinlion 13-02-2015 18:08

Re: Start method for encoders
 
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

Re: Start method for encoders
 
Quote:

Originally Posted by rawrpenguinlion (Post 1443578)
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

Re: Start method for encoders
 
Quote:

Originally Posted by rawrpenguinlion (Post 1443573)
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/...e-2014-to-2015


All times are GMT -5. The time now is 20:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi