Thread: Magnetic Sensor
View Single Post
  #13   Spotlight this post!  
Unread 28-02-2013, 16:55
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 495
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Magnetic Sensor

Well i changed that values from a 1 to a 6 so it looked likes:

Code:
m_counter->writeTimerConfig_AverageSize(6, &localStatus);
Then in my code I have this:

Code:
float rpm
Counter gts;
.
.
.
rpm = (((1/gts.GetPeriod()) / 6) *60);
to find the rpm and when i print out the rpm i get strange results. most of the prints say inf the others say something like 23334.053 for rpm. What is going on with that?
Reply With Quote