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.
Diff: LinearCharacteristics.cpp
- 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;