Miscellaneous Library, read Encoder etc.

Dependents:   My_Libraries

Revision:
0:3312872854c4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Unwrapper.h	Mon Mar 04 11:03:51 2019 +0000
@@ -0,0 +1,26 @@
+/*  
+*/
+
+using namespace std;
+
+class Unwrapper
+{
+public:
+
+    Unwrapper(double);
+    
+    double operator()(short inc) {
+        return doStep(inc);
+    }
+    
+    virtual     ~Unwrapper();
+    
+    void        reset(void);
+    double       doStep(short inc);
+
+private:
+
+    long last_value;
+    double inc2rad;
+
+};
\ No newline at end of file