2nd try
Unwrapper_2pi.h@0:72b60c5271cc, 2019-03-07 (annotated)
- Committer:
- altb2
- Date:
- Thu Mar 07 07:03:44 2019 +0000
- Revision:
- 0:72b60c5271cc
- Child:
- 3:29602f4ade5c
System running
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
altb2 | 0:72b60c5271cc | 1 | /* |
altb2 | 0:72b60c5271cc | 2 | */ |
altb2 | 0:72b60c5271cc | 3 | |
altb2 | 0:72b60c5271cc | 4 | using namespace std; |
altb2 | 0:72b60c5271cc | 5 | |
altb2 | 0:72b60c5271cc | 6 | class Unwrapper_2pi |
altb2 | 0:72b60c5271cc | 7 | { |
altb2 | 0:72b60c5271cc | 8 | public: |
altb2 | 0:72b60c5271cc | 9 | |
altb2 | 0:72b60c5271cc | 10 | Unwrapper_2pi(void); |
altb2 | 0:72b60c5271cc | 11 | |
altb2 | 0:72b60c5271cc | 12 | float operator()(float in) { |
altb2 | 0:72b60c5271cc | 13 | return doStep(in); |
altb2 | 0:72b60c5271cc | 14 | } |
altb2 | 0:72b60c5271cc | 15 | |
altb2 | 0:72b60c5271cc | 16 | virtual ~Unwrapper_2pi(); |
altb2 | 0:72b60c5271cc | 17 | |
altb2 | 0:72b60c5271cc | 18 | void reset(void); |
altb2 | 0:72b60c5271cc | 19 | float doStep(float inc); |
altb2 | 0:72b60c5271cc | 20 | |
altb2 | 0:72b60c5271cc | 21 | private: |
altb2 | 0:72b60c5271cc | 22 | |
altb2 | 0:72b60c5271cc | 23 | long turns; |
altb2 | 0:72b60c5271cc | 24 | float last_value; |
altb2 | 0:72b60c5271cc | 25 | |
altb2 | 0:72b60c5271cc | 26 | }; |