Fixed GPS position outlier detection by appropriate statistical compa… - #107
Open
MasterPIC wants to merge 1 commit into
Open
Fixed GPS position outlier detection by appropriate statistical compa…#107MasterPIC wants to merge 1 commit into
MasterPIC wants to merge 1 commit into
Conversation
…rison: - sigma clipping with k=2: the delta of the latest sample from the distribution mean is compared against 2σ (previously the raw delta was compared against σ directly, missing the subtraction of the mean) - sample count properly tracked to avoid spurious results during buffer fill-up Clarified GNSS timing semantics by introducing two named constants replacing a magic number (5000ms) used indiscriminately for two distinct purposes: - GPS_VALID_TIMEOUT_MS: maximum age of a GNSS fix to be considered valid - GPS_COMPARISON_PERIOD_MS: period between consecutive comparisons of the stored (EEPROM) position against the current GNSS reading, used as a drift alert (no position update is performed) Tuning: - GPS_VALID_TIMEOUT_MS and GPS_COMPARISON_PERIOD_MS both reduced to 2000ms - Number of observations increased to 12 - Absolute thresholds in isLocationSyncWithGNSS (2 arcsec lat/lng, 30m elevation) can be further reduced once field-tested
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…rison:
Clarified GNSS timing semantics by introducing two named constants replacing a magic number (5000ms) used indiscriminately for two distinct purposes:
Tuning: