Skip to content

Conversation

@jhmigueles
Copy link
Collaborator

@jhmigueles jhmigueles commented Jul 9, 2025

Fixes #82 => all raw accelerometer and gyroscope values were scaled using a denominator of 32767, regardless of sign. This ignores the asymmetry of two's complement representation for 16-bit signed integers (range: -32768 to +32767). Now this is fixed. The maximum expected error with the previous approach was ~0.2 m_g_ for accelerometer and ~0.05 º/s for gyroscope.

Fixes #83 => fixes a small documentation error in readParmayMatrix. The byte positions of the "MDTC" header string and the total packet count were mistakenly swapped in the documentation.

Fixes #87 => Parmay Matrix website is now updated in README and readParmayMatrix function documentation.

Fixes #88 => Improved handling of files when the total number of packets declared in the binary file header (headerPackeNum) does not exactly match the actual number of packet headers (MDTCPACK) observed in the file (the manufacturer confirms this may occur and they ensure that the available packets are reliable).

Additionally, I updated the github workflows as they were not passing. I used the latest version of test-coverage and r-cmd-check-standard and slightly modified the r-cmd-basic check.

Checklist before merging:

  • Existing tests still work (check by running the test suite, e.g. from RStudio).
  • Added tests (if you added functionality) or fixed existing test (if you fixed a bug).
  • Updated or expanded the documentation.
  • Updated release notes in NEWS.md with a user-readable summary. Please, include references to relevant issues or PR discussions.
  • Added your name to the contributors lists in the DESCRIPTION file, if you think you made a significant contribution.

@jhmigueles
Copy link
Collaborator Author

Update: as this PR was not yet merged, I have updated the Parmay Matrix website in documentation in this same branch.

@jhmigueles jhmigueles marked this pull request as ready for review October 16, 2025 05:22
…s referent for timestamps AND improved handling of first-last corrupted packets
…re read, then GGIR will do usual data quality checks
Copy link
Member

@vincentvanhees vincentvanhees left a comment

Choose a reason for hiding this comment

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

thanks Jairo, also for updating the GitHub workflow files

@vincentvanhees vincentvanhees merged commit 1d4e488 into main Nov 21, 2025
8 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

3 participants