View Single Post
  #7   Spotlight this post!  
Unread 17-03-2012, 18:38
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
Re: Tachometer Interrupt Help

Quote:
Originally Posted by loafdog View Post
twiggzee, have you tried different speeds when running your device/tach? We found that until our shooter reached a certain speed getPeriod returned infinity. We also used setMaxPeriod to adjust the period so that we could measure shooter revolutions at the lowest speed we would ever use.
I didn't see a way to find out what the original max period value was, either by calling a function or looking at wpilib src code.

-Maciej

that was it. tried it again, turns out that the getPeriod method only consistently gives a reading when our wheel is spinning more than 1200 rpm. anything below that we get either an "infinity" reading or an occasional reading when approaching 1200 rpm. thanks!
__________________
Wendy
Team 3502
Reply With Quote