This is long so I have posted it separate to the TCX output post
Its not 100% babel related, but I am not sure on how the data itself is pulled from the edge (and other) units using babel. Maybe someone else can make a more imform comment on this.
This all boils down to a problem with the Edge 305 (which I am trying to show in Garmins own format apposed to GPX and even MB direct import), and I suspect the other Edge units (possible other Garmin units no idea yet). I am not sure how you read the data directly from the Edge so maybe this can be sorted in Babel as Garmin really seem to have no idea of what I am trying to explain to them so far.
If you do 4 1km laps, 1 minute each, with Autolap set to 1km. You start recording, and you complete your 4th lap, but you do not press stop for 0.5km.
Technically you have 5 laps.
Lap 1 1.0km 00:01:00
Lap 2 1.0km 00:01:00
Lap 3 1.0km 00:01:00
Lap 4 1.0km 00:01:00
Lap 5 0.5km 00:00:30
Total for all laps: 4.5km 00:04:30
If you delete Lap 5, total for all laps is 4.0km 00:04:00.
BUT, almost everywhere will show the total as 4.5km 00:04:30 because it only deletes some lap marker and not the track itself. It keeps the entire track regardless of the. laps you delete.
Various programmes handle this differently.
Memory-Map - 4.5km 00:04:30 (imports the track regardless of laps, retains HR which is nice)
Nokia Sports Tracker - 4.5km 00:04:30 (via gpx from memory-map and babel)
Motion Based - 4.5km 00:04:30 - it only shows 4 laps @ 00:01:00 (direct import using their plugin)
Training Centre - total distance 4.0km 00:04:00 - 4 laps @ 1km 00:01:00 - but the graphs still show up until 4.5km 00:04:30 (direct import)
so TC is getting its total time from the laps regardless of the track.
Considering I pressed Stop @ 4.5km, you might assume that is correct, but the total laps should be calculated as the total. Start to imagine if you deleted Lap 2 instead.
This is why I was looking at the TCX format, to see how it lists its tracks vs GPX. If tcx lists <track> within its <lap>, where on earch is it putting the left over track?