Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PolynomialCharacteristics.h
- Committer:
- altb
- Date:
- 2019-03-04
- Revision:
- 0:3312872854c4
File content as of revision 0:3312872854c4:
// Polynomial Characteristics for different purposes (map Voltage to acc etc.)
#ifndef POLYNOMIALCHARACTERISTICS_H_
#define POLYNOMIALCHARACTERISTICS_H_
#include "mbed.h"
class PolynomialCharacteristics{
public:
PolynomialCharacteristics(float *, uint8_t, float, float);
float evaluate(float);
float operator()(float x){
return evaluate(x);
}
//...
virtual ~PolynomialCharacteristics();
// here: the calculation function
private:
// here: private functions and values...
float *P;
float degree;
float ulim;
float llim;
};
#endif // LINEAR_CHARACTERISTICS_H_