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