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

Fix bug in GPS weight for vertical velocity calculation #6603

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

avsaase
Copy link
Member

@avsaase avsaase commented Feb 15, 2021

If I understand correctly, posEstimator.gps.vel.z and posEstimator.est.vel.z are both in cm/s. But that means that bellCurve() leaves very little weight on the GPS velocity when curveWidth is 2.5, even for very small errors (for example, 37% for 10cm/s error). I think this is a mistake and it should be 250.

@DzikuVx
Copy link
Member

DzikuVx commented Feb 15, 2021

@digitalentity WDYT?

@digitalentity
Copy link
Member

Good catch!

@digitalentity digitalentity added this to the 2.7 milestone Feb 15, 2021
@digitalentity digitalentity merged commit 1356480 into iNavFlight:master Feb 15, 2021
@avsaase avsaase deleted the avs-fix-gps-weight-bug branch February 15, 2021 17:07
@DzikuVx DzikuVx modified the milestones: 2.7, 2.6.1 Feb 23, 2021
@DzikuVx DzikuVx added the BUG label Feb 23, 2021
DzikuVx pushed a commit that referenced this pull request Feb 23, 2021
Fix bug in GPS weight for vertical velocity calculation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants