Fertig

Dependencies:   mbed

Fork of RT2_P3_students by TeamSurface

LinearCharacteristics.h

Committer:
Kiwicjam
Date:
2018-05-07
Revision:
13:724759951a6f
Parent:
9:dc0eb7dd0d92

File content as of revision 13:724759951a6f:

// Linear Characteristics for different purposes (map Voltage to acc etc.)


#ifndef LINEAR_CHARACTERISTICS_H_
#define LINEAR_CHARACTERISTICS_H_   


class LinearCharacteristics{
     public:
            LinearCharacteristics(float, float);
            LinearCharacteristics(float, float ,float ,float);
            float evaluate(float);
            float operator()(float x){
                return evaluate(x);
                } 
                //...
                virtual     ~LinearCharacteristics();
                // here: the calculation function
    
    private:
        // here: private functions and values...
        float gain;
        float offset;
};


#endif      // LINEAR_CHARACTERISTICS_H_