Miscellaneous Library, read Encoder etc.

Dependents:   My_Libraries

Unwrapper.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
{
public:

    Unwrapper(double);
    
    double operator()(short inc) {
        return doStep(inc);
    }
    
    virtual     ~Unwrapper();
    
    void        reset(void);
    double       doStep(short inc);

private:

    long last_value;
    double inc2rad;

};