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
Fork of RT2_P3_students by
Diff: LinearCharacteristics.h
- Revision:
- 2:d7b497824b17
- Parent:
- 1:a30512c3ac73
--- a/LinearCharacteristics.h Mon Apr 09 05:50:04 2018 +0000
+++ b/LinearCharacteristics.h Mon Apr 09 08:04:35 2018 +0000
@@ -8,12 +8,18 @@
class LinearCharacteristics{
public:
//...
- //...
+ LinearCharacteristics(float, float);
+ LinearCharacteristics(float, float), float, float);
virtual ~LinearCharacteristics();
// here: the calculation function
+ float calculateValue(float);
+ float operator ()(float u){
+ return calculateValue(u);
+ }
private:
- // here: private functions and values...
+ float k;
+ float offset;
};
