Hi all,
I hope it is ok to post this here...
I was running a 40 min auto mission today using a pixhawk, AC3.2rc9 with Randy’s landing detector patch, EKF enabled, and a ublox M8 GPS. The flight was smooth. When geotagging the 770 images based on the log file I was wondering why the GPS altitude was constantly decreasing. Checking against the other altitude data was even more confusing:
- AHR2 altitude was constant at about 460m while GPS altitude was decreasing about 8m
- However, both Baro altitude and GPS relative altitude where both stable - same as AHR2 altitude
- When landing in RTL I normally stop at 7m a.g.l. before the final decent at a slower speed. But this time it stopped at about 1.5m a.g.l. before the final descent. You also see this discrepancy in the take off and landing altitudes at the exact same location in all data except the GPS altitude data.
This leads me to the assumption that the only correct altitude measure was the GPS altitude. But as it seems it was not used during flight but only the baro altitude. Then, the next question is where do these obviously wrong GPS relative altitude values come from?
Are there any EKF settings which can be tuned to rely more on the GPS altitude data. There is EKF_ALT_NOISE but it seems to be problematic to set this to too low values on copters and only related to the baro. Or is the GPS altitude generally not used in EKF/DCM?
For 3D mapping reliable altitude measures would be of great advantage. Apart from that the landing process should be as secure and reliable as possible.
Below you find some corresponding screenshots.
Any help is greatly appreciated! And as always I am happy to test any patch.
Thanks in advance and best regards,
Thorsten
AHR2 vs GPS altitude:

GPS RelAlt vs. Baro altitude:
