View Single Post
  #2   Spotlight this post!  
Unread 12-02-2011, 16:49
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Few Questions over WPILib Code

GetRate() uses the value you set with SetDistancePerPulse(). It returns distancePerPulse / the period between the last two pulses in seconds. So if you set distancePerPulse to 1.0 and the FPGA saw three pulses in the last second it would return 3.0. The units of the number you set with SetDistancePerPulse() is up to you. So if 1.0 was an inch then you are moving at 3 inches/second. If it was a foot then 3 feet / sec.
Reply With Quote