Skip to content

MEKF redesign - #102

Merged
ali-cetin-4ss merged 221 commits into
mainfrom
mekf-version2
Sep 3, 2026
Merged

MEKF redesign#102
ali-cetin-4ss merged 221 commits into
mainfrom
mekf-version2

Conversation

@vegard-solum-4ss

@vegard-solum-4ss vegard-solum-4ss commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Refactor MEKF for readability and speed (AHRS/VRU mode).

Runs >70% faster than current implementation.

Key improvements:

  • Calculate state transition matrix and process noise covariance directly, avoiding the intermediate continuous-time state space matrices.
  • Remove the need for prior state and covariance estimates.
  • Simplified Kalman update code.
  • Take coning and sculling integrals as input instead of instantaneous rate measurements. Note that rate measurements can still be applied using dvel = f * dt and dtheta = w * dt.
  • Speed-up attitude reset by exploiting the renormalization.

Checklist

  • PR title is descriptive and fit for injection into release notes (see tips below).
  • Correct label(s) are used.

PR title tips:

  • Use imperative mood.
  • Describe the motivation for change, issue that has been solved or what has been improved - not how.
  • Examples:
    • Add functionality for Allan variance to smsfusion.simulate
    • Upgrade to support Python 3.10
    • Remove MacOS from CI

Comment thread src/smsfusion/_ins/_pvamekf.py Outdated
Comment thread src/smsfusion/_ins/_amekf.py Outdated
Comment thread src/smsfusion/_ins/_vamekf.py Outdated
@ali-cetin-4ss
ali-cetin-4ss self-requested a review September 3, 2026 12:25
@ali-cetin-4ss ali-cetin-4ss added breaking-change A breaking change feature New feature labels Sep 3, 2026
@ali-cetin-4ss
ali-cetin-4ss merged commit 75c7a3e into main Sep 3, 2026
3 checks passed
@ali-cetin-4ss
ali-cetin-4ss deleted the mekf-version2 branch September 3, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change A breaking change feature New feature

Development

Successfully merging this pull request may close these issues.

2 participants