Simple program for introduction of mirror actuator.

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 #ifndef LINEAR_CHARACTERISTICS_H_
00003 #define LINEAR_CHARACTERISTICS_H_   
00004 
00005 
00006 class LinearCharacteristics{
00007      public:
00008             LinearCharacteristics(){};
00009             LinearCharacteristics(float, float);
00010             LinearCharacteristics(float, float, float, float);
00011             LinearCharacteristics(float, float, float, float, float, float);
00012             float evaluate(float);
00013             void setup(float, float, float, float);
00014             void setup(float, float, float, float, float, float);
00015             float operator()(float x){
00016                 return evaluate(x);
00017                 } 
00018                 //...
00019                 virtual     ~LinearCharacteristics();
00020                 // here: the calculation function
00021     
00022     private:
00023         // here: private functions and values...
00024         float gain;
00025         float offset;
00026         float ulim;
00027         float llim;
00028 };
00029 
00030 
00031 #endif      // LINEAR_CHARACTERISTICS_H_