Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
DiffCounter.h
- Committer:
- altb
- Date:
- 2018-09-28
- Revision:
- 0:d784b08f51ff
File content as of revision 0:d784b08f51ff:
#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_ */