Fertig
Dependencies: mbed
Fork of RT2_P3_students by
DiffCounter.h
- Committer:
- Kiwicjam
- Date:
- 2018-05-07
- Revision:
- 13:724759951a6f
- Parent:
- 7:72982ede2ff6
File content as of revision 13:724759951a6f:
#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_ */