Restore per-worker VQF for methods 5-7#393
Merged
JanuszBedkowski merged 2 commits intoMapsHD:mainfrom Mar 9, 2026
Merged
Conversation
Re-add estimate_orientations() that was removed in PR MapsHD#392. Methods 5-7 (VQF velocity) now use a local VQF instance per worker to estimate orientations from IMU data, instead of reusing the global VQF orientations. Also restore missing imu_utils function definitions (safe_dt, has_nan, is_accel_valid, convert_gyro_to_rads).
Local VQF now uses the same parameters as global VQF (from GUI/TOML) instead of hardcoded defaults. Only tauAcc was passed before.
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.
Summary
estimate_orientations()removed in Disable IMU preintegration by default #392imu_utilsfunction definitions (safe_dt,has_nan,is_accel_valid,convert_gyro_to_rads) that were lost during refactorContext
PR #392 accidentally removed per-worker VQF orientation estimation. Methods 5-7 became identical to 2-4 in terms of orientation source, differing only in velocity source. This restores the original behavior where methods 5-7 estimate local orientations from each worker's IMU data using a fresh VQF instance.