Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Order of records when decoding fit-files with c# ?

Rank

Total Posts: 1

Joined 2019-10-25

PM

Hi Guys,

I'm trying to decode fit-files to extract the tracks into a gpx-file following the technique in the DecodeDemo.cs in c#.
As far as I understood, a fit-file can contain any number of activities, courses and laps. So the gpx must also have multiple tracks and track-segments accordingly.

How is this organized in a fit-file?
Testing several fits from different devices, I can't see any pattern.

Sometimes courses-record comes first, then lap-record then the actual point-records.
On other files activity and lap comes last.

So is there a specific order of the records or how do I get these things together?
I didn't find any infos about this in the pdfs.

Thanks Tom