My Controller Library
LinearCharacteristics.h
- Committer:
- altb
- Date:
- 2018-09-28
- Revision:
- 0:e2a7d7f91e49
File content as of revision 0:e2a7d7f91e49:
// 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); LinearCharacteristics(float, float, float, float, float, float); float evaluate(float); float operator()(float x){ return evaluate(x); } //... virtual ~LinearCharacteristics(); // here: the calculation function private: // here: private functions and values... float gain; float offset; float ulim; float llim; }; #endif // LINEAR_CHARACTERISTICS_H_