openmovementproject / openmovement

Open Movement devices are miniature, embeddable, open source sensors developed at Newcastle University, UK. The source code for the firmware and software is available under a BSD 2-clause license, and the hardware (PCB designs, layouts and schematics), enclosure designs and documentation are available under a Creative Commons 3.0 BY Attribution License.
https://openmovement.dev
146 stars 76 forks source link

Software/AX3/cwa-convert/java output is not matching with Software/AX3/cwa-convert/c/ #45

Closed vgandikota83 closed 2 years ago

vgandikota83 commented 2 years ago

Hi, We converted a CWA file using Software/AX3/cwa-convert/c/ and Software/AX3/cwa-convert/java (with only input and output parameters).

Below are the observations.

1) The Java output is not matching with C output. Output values are completely different. 1) C output contains 2244360 records and java output contains 4488640 records 2) C output contains 7 values in each record but java output contains 4 values

We need to use java code to convert CWA file. Please let us know if anything missing.

SampleCWA.zip

Thanks, Veera.

danielgjackson commented 2 years ago

The Java CWA loader/converter did not have support for .CWA files from AX6 devices -- in particular, there was no support for gyroscope channels or variable accelerometer scaling.

I have now fixed this in Commit 570001c, but the Java code is still quite old and there are caveats.