Quote:
Originally Posted by masoug
Thanks for the quick reply, so if there are no errors, it returns the number of pulses over time?
How would I get a speed value from it? IF GetRate() is REALLY not THAT good, then would GetDistance() work?
THANKS!!!
-Masoug
|
GetRate() automatically scales the pulse rate to get speed. The output = distance_per_pulse/pulse_period, where pulse_period is the time between the last two recorded pulses unless there is a stall condition. In a stall condition, pulse_period is set to "infinity" after the max_period time is exceeded. This drives GetRate() to zero.
GetDistance() is working ok. Only GetRate() has a few bugs. As I mentioned before, a temporary patch has been defined to get this operational on
first forge and will surely be corrected in a software update before next season.