branch for cuboid

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LinearCharacteristics.h Source File

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);
00016             void setup(float, float, float, float);
00017             void setup(float, float, float, float, float, float);
00018             float operator()(float x){
00019                 return evaluate(x);
00020                 } 
00021                 //...
00022                 virtual     ~LinearCharacteristics();
00023                 // here: the calculation function
00024     
00025     private:
00026         // here: private functions and values...
00027         float gain;
00028         float offset;
00029         float ulim;
00030         float llim;
00031 };
00032 
00033 
00034 #endif      // LINEAR_CHARACTERISTICS_H_