Skip to content

Add IMU dt sanity checks before VQF init - #544

Merged
JanuszBedkowski merged 3 commits into
mainfrom
mp/imu-dt-sanity-check
Sep 29, 2026
Merged

JanuszBedkowski merged 3 commits into
mainfrom
mp/imu-dt-sanity-check

Conversation

@michalpelka

Copy link
Copy Markdown
Contributor

VQF is initialised with a single average IMU sample period computed from the first and last timestamps, so bad timestamps skew the whole session.

  • Warn when the average dt is far from 200 Hz.
  • If the session spans more than 24 h, log an error and fall back to 200 Hz.
  • Applied in Step 1 (VQF path) and the raw data viewer.
  • Remove unused SAMPLE_PERIOD defines.

The Madgwick (Fusion) path is unchanged.

🤖 Generated with Claude Code

michalpelka and others added 2 commits September 28, 2026 23:19
Warn when the average IMU sample period is off from 200 Hz and fall
back to 200 Hz for sessions spanning more than 24 h. Applied in step 1
and the raw data viewer. Remove unused SAMPLE_PERIOD defines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@michalpelka
michalpelka force-pushed the mp/imu-dt-sanity-check branch from 668093d to caea7fd Compare September 28, 2026 21:22
Signed-off-by: Michal Pelka <[email protected]>
@JanuszBedkowski
JanuszBedkowski merged commit 41304aa into main Sep 29, 2026
7 checks passed
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