.
Embed:
(wiki syntax)
Show/hide line numbers
LinearCharacteristics.h
00001 // Linear Characteristics for different purposes (map Voltage to acc etc.) 00002 00003 00004 #ifndef LINEAR_CHARACTERISTICS_H_ 00005 #define LINEAR_CHARACTERISTICS_H_ 00006 00007 00008 class LinearCharacteristics{ 00009 public: 00010 LinearCharacteristics(){}; 00011 LinearCharacteristics(float, float); 00012 LinearCharacteristics(float, float, float, float); 00013 LinearCharacteristics(float, float, float, float, float, float); 00014 float evaluate(float); 00015 void setup(float, float, float, float); 00016 void setup(float, float, float, float, float, float); 00017 float operator()(float x){ 00018 return evaluate(x); 00019 } 00020 //... 00021 virtual ~LinearCharacteristics(); 00022 // here: the calculation function 00023 00024 private: 00025 // here: private functions and values... 00026 float gain; 00027 float offset; 00028 float ulim; 00029 float llim; 00030 }; 00031 00032 00033 #endif // LINEAR_CHARACTERISTICS_H_
Generated on Wed Jul 13 2022 23:05:32 by 1.7.2