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:
19:ee2558b13570
Parent:
16:c2b0f3ca63dd
Child:
22:eaaaa42a0ccb
--- a/TRP105FS_SPIWrapper.cpp	Fri Jun 24 11:33:01 2016 +0000
+++ b/TRP105FS_SPIWrapper.cpp	Thu Jun 30 15:23:41 2016 +0000
@@ -43,6 +43,13 @@
     ,filename("\0")
 {}
 
+SPI_TRP105FS::SPI_TRP105FS(unsigned int arg_ns, unsigned int arg_ch)
+    :channel(arg_ch)
+    ,nsample(arg_ns)
+    ,trp(TRP105FS(nsample))
+    ,filename("\0")
+{}
+
 void
 SPI_TRP105FS::setSample(unsigned short arg_x)
 {