jarzebski/Arduino-MS5611

Altitude obviously wrong

Closed this issue · 2 comments

Hello,

I am trying to use your library on an Arduino UNO R2. The temperatures provided by the MS5611_simple example seem to be correct but not the absolute altitudes (I have 26m instead of 57 above sea level).

Weather conditions affect the pressure readings so you're not going to get an exact altitude calculation unless you can feed in a nearby sea level reference pressure. The absoluteAltitude = ms5611.getAltitude(realPressure); in the example is a bit of a misnomer. If this is for a moving device, you could always call the getSeaLevel() function to get that sea level reference pressure, given the known starting altitude. If it's a fixed base device well then you can just look up the altitude.

OK, thanks!