Skip to content

Added imu preintegration and migrated from Madgwick to VQF algorithm for orientation estimation#391

Merged
JanuszBedkowski merged 13 commits intoMapsHD:mainfrom
Jakubach:imu_preintegration
Mar 8, 2026
Merged

Added imu preintegration and migrated from Madgwick to VQF algorithm for orientation estimation#391
JanuszBedkowski merged 13 commits intoMapsHD:mainfrom
Jakubach:imu_preintegration

Conversation

@Jakubach
Copy link
Copy Markdown
Contributor

@Jakubach Jakubach commented Mar 8, 2026

Jakubach added 13 commits March 2, 2026 22:43
Swap out the Fusion complementary filter for VQF (Versatile
Quaternion-based Filter) across all apps and core IMU preintegration.
VQF provides better out-of-the-box accuracy with gyroscope bias
estimation and a more robust inclination correction approach.
Direction from VQF AHRS heading, speed from IMU preintegration
displacement of previous worker.
- All VQF params (bias estimation, rest detection, magnetometer)
  exposed with tooltips based on VQF paper descriptions
- Magnetometer params hidden behind "Use magnetometer" checkbox
- Refactored calculate_trajectory() to take LidarOdometryParams
- Clearer preintegration method names in GUI
- Added buildVQFParams() helper for consistent VQF initialization
@JanuszBedkowski JanuszBedkowski merged commit 574f176 into MapsHD:main Mar 8, 2026
6 of 7 checks passed
Jakubach added a commit to Jakubach/HDMapping that referenced this pull request Mar 9, 2026
Re-add Fusion library that was removed in PR MapsHD#391 (VQF migration).
Fusion is now the default AHRS (use_vqf=false), with VQF available
as an alternative via GUI toggle or TOML parameter.

- Add use_vqf bool and fusion_gain params to LidarOdometryParams
- Dual AHRS path in calculate_trajectory() and alternative_approach()
- GUI: conditional display of Fusion/VQF params based on toggle
- TOML: backward compatible (missing keys use struct defaults)
- Re-activate Fusion submodule and CMake integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants