read pressure and temperature from LPS25h.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:813b3c3eb644
- Parent:
- 0:955628fdbf95
- Child:
- 3:844fb47ba7a2
--- a/main.cpp Mon Apr 13 06:39:17 2015 +0000 +++ b/main.cpp Mon Apr 13 12:47:42 2015 +0000 @@ -22,7 +22,7 @@ p = (double)lps25h.pressure()/4096.0; t = 42.5 + (double)lps25h.temperature()/480.0; - // Calculate altitude + // Calculate height h = (pow((p0/p),0.1902)-1.0)*(t+273.15)/0.0065; // Display result