Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under approximation of the altitude covariance #137

Open
SivertHavso opened this issue Sep 29, 2021 · 0 comments
Open

Under approximation of the altitude covariance #137

SivertHavso opened this issue Sep 29, 2021 · 0 comments

Comments

@SivertHavso
Copy link

Currently the altitude covariance is approximated by using the Horizontal Dilution of Precision (HDOP) times two instead of the Vertical Dilution of Precision (VDOP):

current_fix.position_covariance[8] = (
2 * hdop * self.alt_std_dev) ** 2 # FIXME

While from my very anecdotal experience this is a decent approximation, at times the VDOP will be greater than HDOP*2 leading to an under approximation of the covariance. The inverse holds true as well, but an under approximation is in most cases worse than an over approximation of the covariance.

VDOP isn't available in any of the NMEA sentences currently parsed, but it is available in GSA sentences so there is the potential of parsing these and the changing the above lines to:

current_fix.position_covariance[8] = (vdop * self.alt_std_dev) ** 2 

As a temporary fix I'm over inflating the approximated covariance before inputting into any Kalman Filters, but it would good to have this improved at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants