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_G4 by
LinearCharacteristics.h
- Committer:
- sipru
- Date:
- 2018-05-15
- Revision:
- 12:e18fdd404660
- Parent:
- 10:85840c065e00
File content as of revision 12:e18fdd404660:
// Linear Characteristics for different purposes (map Voltage to acc etc.) #ifndef LINEAR_CHARACTERISTICS_H_ #define LINEAR_CHARACTERISTICS_H_ class LinearCharacteristics{ public: // here: the calculation function LinearCharacteristics(float gain, float offset); LinearCharacteristics(float xmin, float xmax,float ymin,float ymax); float eval(float x); virtual ~LinearCharacteristics(); float operator () (float x){ return eval(x); } private: // here: private functions and values... float gain; float offset; }; #endif // LINEAR_CHARACTERISTICS_H_