enhanced functionality in V01 vs. V00, V02 finished, conversion to double precsision in V03

Dependencies:   mbed

DiffCounter.h

Committer:
pmic
Date:
18 months ago
Revision:
22:c895fa4d7319
Parent:
18:44760408b75e

File content as of revision 22:c895fa4d7319:

class DiffCounter
{
public:

    DiffCounter(float T, float Ts);
    
    float operator()(short inc) {
        return doStep(inc);
    }
    
    virtual     ~DiffCounter();
    
    void        reset(float initValue, short inc);
    float       doStep(short inc);

private:

    double b;
    double a;
    short incPast;
    double vel;
    double inc2rad;

};