View Single Post
  #10   Spotlight this post!  
Unread 17-02-2012, 00:30
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Using Proxy Switch to Calculate RPM

If you're trying to use this value for closed loop control, then yes you probably want to use the period value instead, and update your value quicker. You'll also get vastly more useful data out of the period with much higher resolution. Counts only come in integer values, so the smallest change in RPM you can detect is 60 RPM. The period is going to be measured in rather smaller increments, so you should get much higher resolution data out of it. Also, you might be able to use the period measurement straight in your teleop loop instead, as long as the function block returns a good value even if it doesn't have a new period value yet.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter