This lib is supposed to be used as a sensor's calibration or control program. This makes Cubic Spline Model from some sample plots(sets of (value, voltage)), and then discretize the model (dividing the range of voltage into some steps) in order to use the calibrated model data without getting the INVERSE function.
Diff: TRP105F_Spline.h
- Revision:
- 20:0453919a76b2
- Parent:
- 18:b046bba4ffa7
--- a/TRP105F_Spline.h Thu Jun 30 15:23:41 2016 +0000 +++ b/TRP105F_Spline.h Thu Jun 30 16:45:30 2016 +0000 @@ -108,6 +108,7 @@ UseType _useType; // For data sampling and making spline model unsigned short _Sample_Num; // the number of samples for derive spline + unsigned short _snum; // for counting set sample data by _setSample(us,us); VDset* _Sample_Set; double* _u_spline; // For comvert voltage -> physical quantity e.g. distance