View Single Post
  #1   Spotlight this post!  
Unread 17-02-2009, 04:20
vamfun vamfun is online now
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
WPILIB Encoder SetMInRate() Problem

When we use the GetRate() wpilib encoder method, the rate works except that we get an "inf" value when the encoders are still. The SetMinRate() or SetMaxPeriod() methods should force the output to zero the way I understand it. We tried both but still get the "inf" with the printout.

We use C++ and use this in the constructor:
encoder->SetMinRate(1.); //to set min rate to 1 in per second

Any ideas?
Reply With Quote