mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
The MS5611 ADC conversion at OSR 1024 takes ~2.28ms, but the data is read after a 10ms scheduling delay. The current code timestamps the read time, which is ~8.9ms after the true integration midpoint. Correct timestamp_sample by subtracting the full offset (CONVERSION_INTERVAL - CONVERSION_TIME/2) from the read time.