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.
Dependencies: 4DGL-uLCD-SE mbed
Fork of Gas_Sensor_best_copy by
Diff: GasArray.cpp
- Revision:
- 1:fec4764e82cb
- Parent:
- 0:bd3708b85a8b
--- a/GasArray.cpp Thu Jun 16 21:59:31 2016 +0000
+++ b/GasArray.cpp Tue Jun 28 18:58:40 2016 +0000
@@ -73,4 +73,12 @@
uLCD -> locate(10,2*i+1+3*number);
uLCD -> printf("%2.03f", percentages[i]);
}
+}
+
+void GasArray::tare()
+{
+ for(int i=0; i<number; i++)
+ {
+ baseR[i]=(responseV[i]*dividerR[i])/(pwrV-responseV[i]);
+ }
}
\ No newline at end of file
