Ruprecht Altenburger
/
mirror_actuator_V1
Mirror actuator for RT2 lab
Diff: Library_Misc/Unwrapper_2pi.h
- Revision:
- 12:8ea956a5c1d8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Library_Misc/Unwrapper_2pi.h Wed Apr 28 13:10:16 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