Template for group 4

Dependencies:   mbed

Fork of RT2_P3_students by RT2_P3_students

Committer:
altb
Date:
Fri Apr 27 06:34:29 2018 +0000
Revision:
10:85840c065e00
Parent:
5:72982ede2ff6
group 4, 1

Who changed what in which revision?

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