Your tool works fine to convert a fillog file from Sporttracks to a Garmin tcx file (also the split and mapping options). However, the resulting tcx file only contains gps data and elevation. It lacks numerous data like speed, cadence, heart rate and power in the final result.
Can you improve the code to add these data in the tcx file ?