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

Raw acceleration values #71

Open
sho-87 opened this issue May 28, 2018 · 0 comments
Open

Raw acceleration values #71

sho-87 opened this issue May 28, 2018 · 0 comments

Comments

@sho-87
Copy link

sho-87 commented May 28, 2018

Is it possible to extract the raw accelerometer values from a fit file?

I tested the following example from the docs but it doesn't contain any acceleration fields:

from fitparse import FitFile

fitfile = FitFile('C:\\Users\\Simon\\Desktop\\2018-05-27-13-44-59.fit')

# Get all data messages that are of type record
for record in fitfile.get_messages('record'):

    # Go through all the data entries in this record
    for record_data in record:

        # Print the records name and value (and units if it has any)
        if record_data.units:
            print(" * %s: %s %s" % (
                record_data.name, record_data.value, record_data.units,
            ))
        else:
            print(" * %s: %s" % (record_data.name, record_data.value))
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

No branches or pull requests

1 participant