mmmm
Fork of BMP085_lib by
Diff: BMP085.cpp
- Revision:
- 7:2f1b74312474
- Parent:
- 6:2c0e7ee70b8b
--- a/BMP085.cpp Fri Nov 09 20:05:44 2012 +0000 +++ b/BMP085.cpp Wed May 14 16:30:49 2014 +0000 @@ -224,7 +224,7 @@ { const double P0 = 1013.25; //pressure at sea level in hPa double pres_hpa = pressure / 100.0; - altitude = 44330.0 * (1.0 - pow((pres_hpa/P0), 0.190295)); + altitude =145366.45 * (1.0 - pow((pres_hpa/P0), 0.190295)); return altitude; }