corrections altb2

Dependencies:   FastPWM

Lib_Misc/Unwrapper_2pi.h

Committer:
altb2
Date:
2021-08-24
Revision:
3:8aa09988fa58
Parent:
0:d2e117716219

File content as of revision 3:8aa09988fa58:

#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