View Single Post
  #2   Spotlight this post!  
Unread 09-02-2013, 14:28
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: 60 / getPeriod() returns 3,000,000

Quote:
Originally Posted by bhughes View Post
We have encountered a problem where doing this:
Code:
double getRate() {
    return 60 / counter.getPeriod();
}
Randomly returns 3,000,000 sometimes.
What is your setpoint rpm?

How fast is your wheel spinning when this glitch happens?