Lib_Misc
Diff: Unwrapper_2pi.h
- Revision:
- 0:3312872854c4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Unwrapper_2pi.h Mon Mar 04 11:03:51 2019 +0000 @@ -0,0 +1,26 @@ +/* +*/ + +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; + +}; \ No newline at end of file