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

Dependencies:   mbed

Committer:
pmic
Date:
Mon Apr 09 17:50:45 2018 +0000
Revision:
22:c895fa4d7319
Parent:
18:44760408b75e
all in float!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pmic 12:e54941459353 1 class DiffCounter
pmic 12:e54941459353 2 {
pmic 12:e54941459353 3 public:
rtlabor 0:15be70d21d7c 4
pmic 12:e54941459353 5 DiffCounter(float T, float Ts);
pmic 12:e54941459353 6
pmic 12:e54941459353 7 float operator()(short inc) {
pmic 12:e54941459353 8 return doStep(inc);
pmic 12:e54941459353 9 }
pmic 12:e54941459353 10
pmic 12:e54941459353 11 virtual ~DiffCounter();
rtlabor 0:15be70d21d7c 12
pmic 12:e54941459353 13 void reset(float initValue, short inc);
pmic 12:e54941459353 14 float doStep(short inc);
pmic 12:e54941459353 15
pmic 12:e54941459353 16 private:
pmic 12:e54941459353 17
pmic 18:44760408b75e 18 double b;
pmic 18:44760408b75e 19 double a;
pmic 12:e54941459353 20 short incPast;
pmic 18:44760408b75e 21 double vel;
pmic 18:44760408b75e 22 double inc2rad;
pmic 12:e54941459353 23
rtlabor 0:15be70d21d7c 24 };