altb_pmic / Lib_Misc

Dependents:   IndNav_QK3_T265

Revision:
3:379208083c74
Parent:
0:3312872854c4
diff -r 3312872854c4 -r 379208083c74 LinearCharacteristics.cpp
--- a/LinearCharacteristics.cpp	Mon Mar 04 11:03:51 2019 +0000
+++ b/LinearCharacteristics.cpp	Fri May 03 13:46:51 2019 +0000
@@ -35,6 +35,12 @@
 return dum;
     }
 
+void LinearCharacteristics::setup(float gain,float offset){    // standard lin characteristics
+    this->gain = gain;
+    this->offset = offset;
+    this->ulim = 999999.0;
+    this->llim = -999999.0;   
+}
 void LinearCharacteristics::setup(float xmin,float xmax, float ymin, float ymax){    // standard lin characteristics
     this->gain = (ymax - ymin)/(xmax - xmin);
     this->offset = xmax - ymax/this->gain;