X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2Fcalibr.c;h=c9e5f4077794d7f71d145ddb9764e404d033c84c;hp=e08d37340c87aec2a97b08c4270b87f20fd704cf;hb=refs%2Fheads%2Fmaster;hpb=6467d8138460abffd9ddabc7b0a9f00c764af19c diff --git a/common/calibr.c b/common/calibr.c index e08d373..c9e5f40 100644 --- 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)); if (r>100) return 100.0; return r; +} + +inline double calibr_hum05(double t,double hum) { + double y=-0.0006*t*t-0.2455*t-28.5902; + return -(hum/y)+hum; } \ No newline at end of file