Ruprecht Altenburger / Mbed 2 deprecated RT2_P3_students_G4

Dependencies:   mbed

Fork of RT2_P3_students by RT2_P3_students

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

Who changed what in which revision?

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