Interface to a standard tarco sensor. Measure the periode and the cal the speed

Revision:
3:6d3f2034e5f1
Parent:
2:c50da089786a
Child:
4:35024179a736
--- a/Tarco.h	Thu Nov 07 09:23:27 2013 +0000
+++ b/Tarco.h	Thu Nov 07 12:02:47 2013 +0000
@@ -11,9 +11,6 @@
     void click();
     uint32_t PrevPulses;
     int AdvPeriode;
-    int NAdv;
-    float AdvSpeed;
-    int NAdvSpeed;
     Timer t;
 public:
     // ********************************************************************************
@@ -23,8 +20,15 @@
     // ********************************************************************************
     Tarco(PinName tarcosignal);
 
-    uint32_t Puls;
+    // ********************************************************************************
+    // gives the tarco value in hz
+    // ********************************************************************************
+
     float Speed();
+    // ********************************************************************************
+    // gives the tarco value in rotation pr min
+    // ********************************************************************************
+
     float RPM();
 };