PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.52k stars 13.51k forks source link

Automatically set SENS_BARO_QNH based on GPS altitude #11848

Open dagar opened 5 years ago

dagar commented 5 years ago

At startup we could (optionally) automatically calculate an appropriate QNH such that the pressure altitude agrees with the GPS altitude.

https://github.com/PX4/Firmware/blob/d36b06f779d49d8dc7387bf2b4fa3aade999ada3/src/modules/sensors/voted_sensors_update.cpp#L863-L881

dagar commented 5 years ago

Another interesting idea would be to query the weather data over mavlink, assuming that the GCS is internet connected.

dagar commented 5 years ago

ADS-B weather data would be yet another option.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Antiheavy commented 5 years ago

this issue is still worth keeping open for future work.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

GigaFlopsis commented 1 week ago

Hello everyone! What do you think about finally implementing this feature? It's been 5 years already, and auto-calibration is available even in INAV, but it's more relevant than ever now.

We can work on this. the code looks quite simple. However, I would add a number of restrictions: 1 Calibration should start a few seconds after power on. 2 Calibration should only happen under conditions of high GPS accuracy. 2 Recalibration should occur every 10 seconds while the drone is disarm.