Tachometer library

Dependents:   ES202_FinalProject_workingExample DREAMTEAM

Fork of Tach by John Donnal

Revision:
1:b17c9f1d9d5c
Parent:
0:c165325c9e3f
--- a/Tach.cpp	Fri Mar 02 16:52:58 2018 +0000
+++ b/Tach.cpp	Wed Apr 18 17:11:54 2018 +0000
@@ -31,7 +31,7 @@
     float speed;
     static int i=0;
     count_++;
-    speed =  1.0/(timer_.read()*pulsesPerRev_);
+    speed =  1.0/(timer_.read()*pulsesPerRev_); // in Hz, i.e. rev/s
     speedBuffer_[i%NSAMP]=speed;
     i++;
     timer_.reset();