MCPcopy Create free account
hub / github.com/SmingHub/Sming / getDewPoint

Function getDewPoint

samples/Humidity_SI7021/app/application.cpp:15–20  ·  view source on GitHub ↗

LN10 - 2.30258509299404568402

Source from the content-addressed store, hash-verified

13
14//LN10 - 2.30258509299404568402
15double getDewPoint(unsigned int humidity, int temperature)
16{
17 const double C = 235.66; // Constant from the datasheet HTU/SHT
18 return 1 / (1 / ((double)temperature / 100 + C) + (2 - log((double)humidity) / 2.30258509299404568402) / 1762.39) -
19 C;
20}
21
22void si_read_ht()
23{

Callers 1

si_read_htFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected