Hi all.
I want to build a simple logger that continuously records the position of the watch as well as movement data. For this purpose, I coded a simple app that stores in a FIT file once a second the Position data, as well as the 25 measurements from the accelerometer and the gyroscope, this last thing by making use of the SensorLogger object.
I do not create any FIT field manually, the session automatically stores the data with the Position and the SensorLogger. Also, to prevent glitched data, I make sure in my code to have good satellite signal and GPS fix before allowing the user to begin the recording.
My problem now is that I find that, after inspecting a FIT file afterwards, the number of rows of "Record", "Accelerometer Data" and "Gyroscope Data" are always different. Moreover, when I plot the recording of long activities (~20min), these differences become larger.
A possible solution I thought about was using the timestamp field to manually correct these possible mismatches, but the timestamp field of the Accelerometer Data seems bugged (it stays always the same) on my Felix 6 Pro.
I attach one example of a short file, where this different length of the different sources of data is already noticeable. I can also attach a long activity if needed.
I would really appreciate any help on solving this issue.
UPDATE: After playing around with the values in long recordings, I realised that the watch seems to skip one Gyroscope Data entry (25 measurements) every ~80 seconds. I couldn't identify this quantity for the Accelerometer due to the bug in the timestamps