Gathiyo / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

altitude calculation error #345

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Arducoper ACM
library APM_MS5611.cpp 

function:
float AP_Baro_MS5611::get_altitude()
{
float tmp_float;
float Altitude;

tmp_float = (Press / 101325.0);
tmp_float = pow(tmp_float, 0.190295);

Error:  Altitude = 44330 * (1.0 - tmp_float);
Patсh:  Altitude = 44330.0 * (1.0 - tmp_float);

Original issue reported on code.google.com by alexeyko...@gmail.com on 14 Feb 2012 at 7:00

GoogleCodeExporter commented 8 years ago
got it thanks,
Jason

Original comment by jasonshort on 14 Feb 2012 at 4:55

GoogleCodeExporter commented 8 years ago

Original comment by jasonshort on 14 Feb 2012 at 4:55