When Axivity AX6 is configured to not collect gyroscope data, the output of readAxivity still has gyroscope columns but they contain the accelerometer data.
Not a major issue as user should hopefully know that those gyroscope columns cannot represent gyroscope data, but a more elegant solution would be to not create those non-informative gyroscope columns if there is no gyroscope data.
So, the readAxivity function code should not only account for the scenarios AX3 or AX6 but also for AX6 without accelerometer and AX6 without gyroscope.
When Axivity AX6 is configured to not collect gyroscope data, the output of readAxivity still has gyroscope columns but they contain the accelerometer data.
Not a major issue as user should hopefully know that those gyroscope columns cannot represent gyroscope data, but a more elegant solution would be to not create those non-informative gyroscope columns if there is no gyroscope data.
So, the readAxivity function code should not only account for the scenarios AX3 or AX6 but also for AX6 without accelerometer and AX6 without gyroscope.