Skip to content

Center Muse S Athena EEG samples around zero - #856

Merged
Andrey1994 merged 2 commits into
masterfrom
agent/fix-athena-eeg-midpoint
Aug 18, 2026
Merged

Center Muse S Athena EEG samples around zero#856
Andrey1994 merged 2 commits into
masterfrom
agent/fix-athena-eeg-midpoint

Conversation

@Andrey1994

Copy link
Copy Markdown
Member

Summary

  • subtract the fixed 14-bit midpoint (1 << 13) before scaling Muse S Athena EEG samples
  • apply the same centering to both EEG and other-channel mappings in the Athena EEG payload

Why

Athena EEG samples are unpacked as unsigned 14-bit values. A zero-level input is therefore encoded around 8192, so scaling the raw code directly leaves an approximately 725 µV DC pedestal after the scale-factor correction from #855.

This changes the output representation from unsigned, offset values to zero-centered EEG values. It does not remove electrode drift or other physiological low-frequency/DC components.

Fixes the midpoint-handling part of #854.

Validation

  • verified the mapping endpoints and center: raw 0 → approximately -725 µV, raw 8192 → 0 µV, raw 16383 → approximately +725 µV
  • confirmed the diff is limited to the midpoint constant and the two Athena EEG channel assignments
  • full platform checks will run in CI

@Andrey1994
Andrey1994 marked this pull request as ready for review August 18, 2026 22:02
@Andrey1994
Andrey1994 merged commit 9097190 into master Aug 18, 2026
38 of 40 checks passed
@Andrey1994
Andrey1994 deleted the agent/fix-athena-eeg-midpoint branch August 18, 2026 22:02
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.

1 participant