James Kiwic
/
RT2_P3_students
Fertig
Fork of RT2_P3_students by
DiffCounter.h
- Committer:
- altb
- Date:
- 2018-04-17
- Revision:
- 7:72982ede2ff6
- Parent:
- 3:769ce5f06d3e
File content as of revision 7:72982ede2ff6:
#ifndef DIFFCOUNTER_H_ #define DIFFCOUNTER_H_ class DiffCounter { public: DiffCounter(float T, float Ts); float operator()(short inc) { return doStep(inc); } virtual ~DiffCounter(); void reset(float initValue, short inc); float doStep(short inc); private: double b; double a; short incPast; double vel; double inc2rad; }; #endif /* DIFFCOUNTER_H_ */