Fertig

Dependencies:   mbed

Fork of RT2_P3_students by TeamSurface

Committer:
Kiwicjam
Date:
Mon May 07 09:06:54 2018 +0000
Revision:
13:724759951a6f
Parent:
7:72982ede2ff6
fertig komentiert

Who changed what in which revision?

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