Miscellaneous Library, read Encoder etc.

Dependents:   My_Libraries

Unwrapper_2pi.h

Committer:
altb
Date:
2019-03-06
Revision:
2:1c5c71a6fac9
Parent:
0:3312872854c4

File content as of revision 2:1c5c71a6fac9:

/*  
*/

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;

};