![](/media/cache/profiles/altb_JGUSAOG.jpg.50x50_q85.jpg)
corrections altb2
Lib_Misc/Unwrapper_2pi.h@0:d2e117716219, 2021-05-02 (annotated)
- Committer:
- altb2
- Date:
- Sun May 02 19:32:30 2021 +0000
- Revision:
- 0:d2e117716219
1st commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 0:d2e117716219 | 1 | #ifndef UNWRAPPER_2PI_H_ |
altb2 | 0:d2e117716219 | 2 | #define UNWRAPPER_2PI_H_ |
altb2 | 0:d2e117716219 | 3 | |
altb2 | 0:d2e117716219 | 4 | |
altb2 | 0:d2e117716219 | 5 | using namespace std; |
altb2 | 0:d2e117716219 | 6 | |
altb2 | 0:d2e117716219 | 7 | class Unwrapper_2pi |
altb2 | 0:d2e117716219 | 8 | { |
altb2 | 0:d2e117716219 | 9 | public: |
altb2 | 0:d2e117716219 | 10 | |
altb2 | 0:d2e117716219 | 11 | Unwrapper_2pi(void); |
altb2 | 0:d2e117716219 | 12 | |
altb2 | 0:d2e117716219 | 13 | float operator()(float in) { |
altb2 | 0:d2e117716219 | 14 | return doStep(in); |
altb2 | 0:d2e117716219 | 15 | } |
altb2 | 0:d2e117716219 | 16 | |
altb2 | 0:d2e117716219 | 17 | virtual ~Unwrapper_2pi(); |
altb2 | 0:d2e117716219 | 18 | |
altb2 | 0:d2e117716219 | 19 | void reset(void); |
altb2 | 0:d2e117716219 | 20 | float doStep(float inc); |
altb2 | 0:d2e117716219 | 21 | |
altb2 | 0:d2e117716219 | 22 | private: |
altb2 | 0:d2e117716219 | 23 | |
altb2 | 0:d2e117716219 | 24 | long turns; |
altb2 | 0:d2e117716219 | 25 | float last_value; |
altb2 | 0:d2e117716219 | 26 | |
altb2 | 0:d2e117716219 | 27 | }; |
altb2 | 0:d2e117716219 | 28 | #endif |