Template for group 4

Dependencies:   mbed

Fork of RT2_P3_students by RT2_P3_students

LinearCharacteristics.h

Committer:
altb
Date:
2018-04-22
Revision:
7:01a7363583b2
Parent:
5:72982ede2ff6
Child:
10:85840c065e00

File content as of revision 7:01a7363583b2:

// 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_