Fertig
Dependencies: mbed
Fork of RT2_P3_students by
LinearCharacteristics.h
- Committer:
- Kiwicjam
- Date:
- 2018-04-09
- Revision:
- 2:d7b497824b17
- Parent:
- 1:a30512c3ac73
File content as of revision 2:d7b497824b17:
// Linear Characteristics for different purposes (map Voltage to acc etc.) #ifndef LINEAR_CHARACTERISTICS_H_ #define LINEAR_CHARACTERISTICS_H_ 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: float k; float offset; }; #endif // LINEAR_CHARACTERISTICS_H_