corrections altb2

Dependencies:   FastPWM

Revision:
0:d2e117716219
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Lib_Misc/Unwrapper_2pi.h	Sun May 02 19:32:30 2021 +0000
@@ -0,0 +1,28 @@
+#ifndef UNWRAPPER_2PI_H_
+#define UNWRAPPER_2PI_H_
+
+
+using namespace std;
+
+class Unwrapper_2pi
+{
+public:
+
+    Unwrapper_2pi(void);
+    
+    float operator()(float in) {
+        return doStep(in);
+    }
+    
+    virtual     ~Unwrapper_2pi();
+    
+    void        reset(void);
+    float       doStep(float inc);
+
+private:
+
+    long turns;
+    float last_value;
+
+};
+#endif