My Controller Library
Diff: LinearCharacteristics.h
- Revision:
- 1:bf62e74fbcf3
- Parent:
- 0:e2a7d7f91e49
diff -r e2a7d7f91e49 -r bf62e74fbcf3 LinearCharacteristics.h --- a/LinearCharacteristics.h Fri Sep 28 08:34:20 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -// 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_ \ No newline at end of file