View Single Post
  #15   Spotlight this post!  
Unread 09-02-2013, 22:34
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: 60 / getPeriod() returns 3,000,000

Quote:
Originally Posted by Kevin Sevcik View Post
(30 seconds later) EDIT: Also, why not put something in your GetRate function that tosses out obviously incorrect values like a period less than 0.0001 seconds or something?
We had the same problem as the OP last year, with a similar data resolution, and this year (our values were more like 90,000 RPM). This is what we've done, for lack of a better solution.

EDIT: We're using LabVIEW, and the Counter class's Period output (from the Get.vi).
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)