Skip to content

DEV-922 Update API_00008 CAL expectations for the gen-2 default alignment - #283

Merged
jyong15 merged 1 commit into
DEV-922_gen2_alignment_upstreamfrom
claude/adversarial-pr-review-78o8nq
Aug 4, 2026
Merged

DEV-922 Update API_00008 CAL expectations for the gen-2 default alignment#283
jyong15 merged 1 commit into
DEV-922_gen2_alignment_upstreamfrom
claude/adversarial-pr-review-78o8nq

Conversation

@jyong15

@jyong15 jyong15 commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

What

Fixes the one confirmed blocker from the adversarial review of #282: API_00008_VerisenseLsm6dsvTaggedFifoParsing.test001 regression-locks calibration output against literal expected values, and its four CAL assertions still expected identity alignment — so the test fails against this branch's upstreamed gen-2 defaults (expected:<0.11971…> but was:<-0.23942…>). The test runs in CI via the ShimmerDriverPC build, so #282 would go red on merge without this.

Changes (test-only, one file)

  • Recomputed the four failing CAL literals for the applied alignment {{0,1,0},{0,0,1},{1,0,0}}: calibrated accel/gyro X/Y/Z now come from raw Y/Z/X (e.g. ACC_X expects -200/835.3517 instead of 100/835.3517).
  • Extended the lock to all three axes of accel and gyro (previously only X/Y were pinned), so an axis-order regression on Z can't slip through.
  • Added mag CAL assertions — first data-level pin anywhere in this repo of the shared 667 LSB/Gauss mag sensitivity and the left-handed mag alignment (calibrated X/Y/Z from raw X/Z/Y).
  • Updated the comment block: documents the alignment convention and notes 667 is a legacy rounding of the datasheet 666.67 LSB/Gauss.

Validation

  • API_00008_VerisenseLsm6dsvTaggedFifoParsing: 4/4 green on this branch (was 1 failure).
  • Full :ShimmerDriver test suite: 51 tests across 6 classes, 0 failures.

Jira: DEV-922

🤖 Generated with Claude Code

https://claude.ai/code/session_01WaUPkLZVnndWPEixyHcbVy


Generated by Claude Code

…ment

The four CAL regression-lock assertions in test001 still expected
identity alignment and fail against the upstreamed gen-2 defaults:
calibrated accel/gyro X/Y/Z now come from raw Y/Z/X.

Recompute the literals for the applied alignment, extend the lock to
all three axes of accel and gyro, and add mag CAL assertions so the
667 LSB/Gauss sensitivity and the left-handed mag alignment (X/Z/Y)
are pinned at the data level for the first time.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WaUPkLZVnndWPEixyHcbVy

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the gen-2 Verisense tagged-FIFO parsing unit test to match the upstreamed default alignment and magnetometer calibration behavior, preventing CI regression failures after the gen-2 defaults change.

Changes:

  • Adjusted accel/gyro CAL literal expectations to reflect the gen-2 default axis alignment (raw Y/Z/X → calibrated X/Y/Z).
  • Expanded accel/gyro CAL assertions to include Z-axis locks (previously only X/Y).
  • Added mag CAL assertions, pinning the 667 LSB/Gauss sensitivity and mag axis alignment (raw X/Z/Y → calibrated X/Y/Z).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jyong15
jyong15 merged commit 49a2df6 into DEV-922_gen2_alignment_upstream Aug 4, 2026
1 check passed
@jyong15
jyong15 deleted the claude/adversarial-pr-review-78o8nq branch August 4, 2026 08:15
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.

3 participants