Fertig

Dependencies:   mbed

Fork of RT2_P3_students by TeamSurface

Committer:
altb
Date:
Mon Apr 09 08:01:29 2018 +0000
Revision:
3:769ce5f06d3e
Parent:
1:a30512c3ac73
Child:
7:72982ede2ff6
Changes from pmic

Who changed what in which revision?

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