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.

Revision:
22:eaaaa42a0ccb
Parent:
19:ee2558b13570
--- a/TRP105FS_SPIWrapper.cpp	Thu Jun 30 17:02:48 2016 +0000
+++ b/TRP105FS_SPIWrapper.cpp	Thu Jun 30 17:41:14 2016 +0000
@@ -99,6 +99,9 @@
 void
 SPI_TRP105FS::printCalibrationiLOG()
 {
-    trp.printOutData("ADLOG.TXT");
+    char lfilename[13];
+    
+    sprintf(lfilename, "ADLOG%2d.TXT", channel);
+    trp.printOutData(lfilename);
 }
 #endif
\ No newline at end of file