tm3d
/
owSlave2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Many changes from 2018
[owSlave2.git]
/
common
/
calibr.c
diff --git
a/common/calibr.c
b/common/calibr.c
index
e08d373
..
c9e5f40
100644
(file)
--- a/
common/calibr.c
+++ b/
common/calibr.c
@@
-20,4
+20,9
@@
double calibr_hum(double temp,double tempdiv,double hum) {
double r=hum*(SDDD(temp,tempdiv)*(tempdiv/(temp+273.15)+1));
\r
if (r>100) return 100.0;
\r
return r;
\r
double r=hum*(SDDD(temp,tempdiv)*(tempdiv/(temp+273.15)+1));
\r
if (r>100) return 100.0;
\r
return r;
\r
+}
\r
+
\r
+inline double calibr_hum05(double t,double hum) {
\r
+ double y=-0.0006*t*t-0.2455*t-28.5902;
\r
+ return -(hum/y)+hum;
\r
}
\ No newline at end of file
}
\ No newline at end of file