gpa in double prescision

Dependencies:   mbed

DiffCounter.h

Committer:
pmic
Date:
18 months ago
Revision:
28:c71b6856652e
Parent:
19:44760408b75e

File content as of revision 28:c71b6856652e:

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;

};