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.
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 Thu Jul 21 2022 14:11:08 by
1.7.2