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
LinearCharacteristics.h
00001 #ifndef LINEAR_CHARACTERISTICS_H_ 00002 #define LINEAR_CHARACTERISTICS_H_ 00003 00004 #include <cstdlib> 00005 #include <mbed.h> 00006 00007 // Linear Characteristics for different purposes (map Voltage to acc etc.) 00008 class LinearCharacteristics 00009 { 00010 public: 00011 00012 LinearCharacteristics(float k, float offset, float min, float max); 00013 float trans(float input); 00014 00015 // float operator()(float input) { 00016 // return trans(input); 00017 // } 00018 //... 00019 //... 00020 virtual ~LinearCharacteristics(); 00021 // here: the calculation function 00022 00023 00024 private: 00025 // here: private functions and values... 00026 float k; 00027 float offset; 00028 float output; 00029 float min; 00030 float max; 00031 00032 }; 00033 00034 #endif
Generated on Mon Jul 18 2022 18:17:56 by
1.7.2