Quote:
Originally Posted by Alan Anderson
Doesn't the Get() method return a float? The %d format specifier in your printf() is probably going to be an issue.
|
Encoder::Get() returns an int that represents the count, automatically adjusted based on the decoding type (1x, 2x, or 4x).
Encoder::GetDistance(), however, returns a double, which is the count scaled by the factor set with
Encoder::SetDistancePerPulse().
Quote:
|
Originally Posted by dboisvert
Also that didnt get me any feedback from the encoders
|
Are you calling your EncoderInit() function anywhere?