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@2:769ce5f06d3e, 2018-04-09 (annotated)
- Committer:
- altb
- Date:
- Mon Apr 09 08:01:29 2018 +0000
- Revision:
- 2:769ce5f06d3e
- Parent:
- 1:a30512c3ac73
- Child:
- 5:72982ede2ff6
Changes from pmic
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| altb | 2:769ce5f06d3e | 1 | class DiffCounter |
| altb | 2:769ce5f06d3e | 2 | { |
| altb | 2:769ce5f06d3e | 3 | public: |
| altb | 0:78ca29b4c49e | 4 | |
| altb | 2:769ce5f06d3e | 5 | DiffCounter(float T, float Ts); |
| altb | 2:769ce5f06d3e | 6 | |
| altb | 2:769ce5f06d3e | 7 | float operator()(short inc) { |
| altb | 2:769ce5f06d3e | 8 | return doStep(inc); |
| altb | 2:769ce5f06d3e | 9 | } |
| altb | 2:769ce5f06d3e | 10 | |
| altb | 2:769ce5f06d3e | 11 | virtual ~DiffCounter(); |
| altb | 0:78ca29b4c49e | 12 | |
| altb | 2:769ce5f06d3e | 13 | void reset(float initValue, short inc); |
| altb | 2:769ce5f06d3e | 14 | float doStep(short inc); |
| altb | 2:769ce5f06d3e | 15 | |
| altb | 2:769ce5f06d3e | 16 | private: |
| altb | 1:a30512c3ac73 | 17 | |
| altb | 2:769ce5f06d3e | 18 | double b; |
| altb | 2:769ce5f06d3e | 19 | double a; |
| altb | 2:769ce5f06d3e | 20 | short incPast; |
| altb | 2:769ce5f06d3e | 21 | double vel; |
| altb | 2:769ce5f06d3e | 22 | double inc2rad; |
| altb | 2:769ce5f06d3e | 23 | |
| altb | 2:769ce5f06d3e | 24 | }; |
