Miscellaneous Library, read Encoder etc.

Dependents:   My_Libraries

Unwrapper_2pi.h

Committer:
altb
Date:
2019-03-04
Revision:
0:3312872854c4

File content as of revision 0:3312872854c4:

/*  
*/

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;

};