Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(axivity6): support for Axivity 6 (gyroscope data) #42

Merged
merged 5 commits into from
Jul 24, 2024

Conversation

aidanacquah
Copy link

This PR addresses #37 allowing for the parsing of AX6 device.

To do so, we follow changes made at openmovementproject/openmovement@570001c to address parsing of the AX6 device.

To test this is working as expected, we have 4 files:

  1. A raw sample cwa captured from an Ax3 device
  2. A raw csv file extracted from OmGUI for the cwa file in Part 1
  3. A raw sample cwa captured from an Ax6 device
  4. A raw csv file extracted from OmGUI for the cwa file in Part 3

We have tested to ensure:

  1. actipy.read_device(file1) continues to work as expected
  2. actipy.read_device(file1) produces acc values similar to file2
  3. actipy.read_device(file3) works, while adding new gyroscope columns
  4. actipy.read_device(file3) produces acc and gyro values similar to file4

Test system configuration:
image

Test1:
image

Test2:
image

Test3:
image

Test4:
image

Note: An error is reported stating the "data.npy file cannot access the file because it is being used by another process." however this error is not related to this work, and file reading works despite the error. I have therefore reported it in a New issue #41

@aidanacquah aidanacquah changed the title Extract acc and gyroscope cols from Ax6 cwa file Extract accelerometer and gyroscope cols from Ax6 cwa file Jul 16, 2024
“Aidan and others added 5 commits July 23, 2024 17:46
Integer.paserInt(...) fails if there are whitespaces, so .trim() before that.
Skip calibration if the initial error is already below the threshold. The initial error is now checked before proceeding with the calibration loop.
@chanshing
Copy link
Member

Awesome job @aidanacquah Thanks a lot for this!

@chanshing chanshing merged commit 0b56de4 into OxWearables:master Jul 24, 2024
50 checks passed
@chanshing chanshing mentioned this pull request Jul 24, 2024
@chanshing chanshing changed the title Extract accelerometer and gyroscope cols from Ax6 cwa file feat(axivity6): support for Axivity 6 (gyroscope data) Jul 24, 2024
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