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.
Dependencies: mbed
LinearCharacteristics.h@0:15be70d21d7c, 2018-01-10 (annotated)
- Committer:
- rtlabor
- Date:
- Wed Jan 10 16:08:07 2018 +0000
- Revision:
- 0:15be70d21d7c
- Child:
- 2:252a61a7e8f9
balance cuboid
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rtlabor | 0:15be70d21d7c | 1 | class LinearCharacteristics{ |
| rtlabor | 0:15be70d21d7c | 2 | public: |
| rtlabor | 0:15be70d21d7c | 3 | LinearCharacteristics(float k,float offset); |
| rtlabor | 0:15be70d21d7c | 4 | LinearCharacteristics(float k,float offset,float); |
| rtlabor | 0:15be70d21d7c | 5 | LinearCharacteristics(float k,float offset,float,float); |
| rtlabor | 0:15be70d21d7c | 6 | float operator()(float u){ |
| rtlabor | 0:15be70d21d7c | 7 | return eval(u); |
| rtlabor | 0:15be70d21d7c | 8 | } |
| rtlabor | 0:15be70d21d7c | 9 | virtual ~LinearCharacteristics(); |
| rtlabor | 0:15be70d21d7c | 10 | float eval(float); |
| rtlabor | 0:15be70d21d7c | 11 | operator float(); |
| rtlabor | 0:15be70d21d7c | 12 | |
| rtlabor | 0:15be70d21d7c | 13 | private: |
| rtlabor | 0:15be70d21d7c | 14 | |
| rtlabor | 0:15be70d21d7c | 15 | float k; |
| rtlabor | 0:15be70d21d7c | 16 | float offset; |
| rtlabor | 0:15be70d21d7c | 17 | float lower_limit; |
| rtlabor | 0:15be70d21d7c | 18 | float upper_limit; |
| rtlabor | 0:15be70d21d7c | 19 | }; |