sfbsg

Dependencies:   mbed

LinearCharacteristics.h

Committer:
borlanic
Date:
2018-04-03
Revision:
0:8ab621116ccd

File content as of revision 0:8ab621116ccd:

#ifndef LINEAR_CHARACTERISTICS_H_
#define LINEAR_CHARACTERISTICS_H_

#include <cstdlib>
#include <mbed.h>

// Linear Characteristics for different purposes (map Voltage to acc etc.)
class LinearCharacteristics
{
public:

    LinearCharacteristics(float k, float offset, float min, float max);
    float trans(float input);

//    float operator()(float input) {
//        return trans(input);
//    }
    //...
    //...
    virtual     ~LinearCharacteristics();
    // here: the calculation function


private:
    // here: private functions and values...
    float k;
    float offset;
    float output;
    float min;
    float max;

};

#endif