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.
Fork of RT2_P3_students by
DiffCounter.h
- Committer:
- altb
- Date:
- 2018-04-09
- Revision:
- 2:769ce5f06d3e
- Parent:
- 1:a30512c3ac73
- Child:
- 5:72982ede2ff6
File content as of revision 2:769ce5f06d3e:
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;
};
