Test program with the RT black boxes

Dependencies:   mbed

LinearCharacteristics.h

Committer:
altb
Date:
18 months ago
Revision:
22:cef093edb441
Parent:
2:252a61a7e8f9

File content as of revision 22:cef093edb441:

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