Skip to content

extra sample in SENSOR DATA packet #27

Description

@patendolkar

I am trying to read GT3X files from a GT9X IMU to get raw accelerometer/gyro/magnetometer readings. I am expecting every SENSOR DATA tagged packet to have 100 samples, but sometimes (infrequently but throughout all my GT3X files) a packet contains 101 samples, calculated from the payload size divided by the number of bytes per sample as determined from the corresponding sensor schema. Right now I'm assuming the first 100 samples are the good samples, and 'skip' the extra sample. Although the final data appears to be correct, I'm not sure if I am handling this issue correctly using this rule.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions