View Single Post
  #7   Spotlight this post!  
Unread 23-04-2012, 01:42
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Encoder function calls reporting inf

Quote:
Originally Posted by trilogy2826 View Post
We are not. I tried to find a reference of the default value and could not locate it. I can't even find a reference to the units this expects (I assume milliseconds). Any ideas?

Could any value for MinRate actually cause an inf as reported?
If there's no use of it in the code, it probably isn't the problem. The default value has been fine for me in the past.

Units for it are the same as what come from GetRate(). Basically, if the value that would come out of GetRate falls below MinRate, the cRIO will assume the motor is stopped, set period to infinity, and rate to 0. The default is low enough though that you should be clearing the minimum by just spinning the shaft by hand though.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote