Test program with the RT black boxes

Dependencies:   mbed

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(float, float);
00011             LinearCharacteristics(float, float, float, float);
00012             float evaluate(float);
00013             float operator()(float x){
00014                 return evaluate(x);
00015                 } 
00016                 //...
00017                 virtual     ~LinearCharacteristics();
00018                 // here: the calculation function
00019     
00020     private:
00021         // here: private functions and values...
00022         float gain;
00023         float offset;
00024 };
00025 
00026 
00027 #endif      // LINEAR_CHARACTERISTICS_H_