Multisport Training

337 views
Skip to first unread message

art...@gmail.com

unread,
May 11, 2015, 5:00:01 AM5/11/15
to golden-che...@googlegroups.com
Hi,

is there a plan to support multisport sessions? I tried to import a Garmin multisport race (Triathlon) but GC is a bit confused about the different data. Or perhaps I did something wrong! It was the first try to import a multisport session.

cheers

Andy

Mark Liversedge

unread,
May 11, 2015, 6:21:37 AM5/11/15
to golden-che...@googlegroups.com, art...@gmail.com
No plans, but open to ideas !

art...@gmail.com

unread,
May 11, 2015, 1:43:14 PM5/11/15
to golden-che...@googlegroups.com, art...@gmail.com
Hi Mark,

if you want I can provide you the multisport .fit file and you can have a look on it.

cheers
Andy

Jan de Visser

unread,
May 12, 2015, 11:26:16 AM5/12/15
to golden-che...@googlegroups.com, art...@gmail.com

On May 11, 2015 10:43:14 AM art...@gmail.com wrote:

> Hi Mark,

>

> if you want I can provide you the multisport .fit file and you can have a

> look on it.

>

> cheers

> Andy

 

I'm still planning to work on the import of swim .fit files. I'll have a look at this when I'm doing that.

 

jan

Alex Harsanyi

unread,
May 24, 2015, 10:07:18 AM5/24/15
to golden-che...@googlegroups.com, art...@gmail.com
Hi Jan,

I started working on importing mutisport activities form FIT files, but I ran into a some problems.  The code is here:


This works by splitting the activity into its sessions, creating a RideFile object for each session. Unfortunately, it appears that GC is saving the imported sessions as TCX files, and this has two side effects: first, all automatic lap information is lost, second, it does not appear to save some of the Garmin Vector specific metrics (for example Left Right Balance).  

I was wondering if you have some advice on how to save the imported data so that no information is lost?  It would seem to me that the best option would be to generate individual FIT files for the activity, this way, no info would be lost. I'm willing to spend some time doing that, but I wanted to check first if you have a better idea, since I'm not that familiar with the GC source code.

Thanks,
Alex.

Jan de Visser

unread,
May 24, 2015, 10:37:05 AM5/24/15
to golden-che...@googlegroups.com, Alex Harsanyi, art...@gmail.com, Ale Martinez, Mark Liversedge
On May 24, 2015 07:00:41 AM Alex Harsanyi wrote:
> Hi Jan,
>
> I started working on importing mutisport activities form FIT files, but I
> ran into a some problems. The code is here:
>
> https://github.com/alex-hhh/GoldenCheetah/tree/multisport-import
>
> This works by splitting the activity into its sessions, creating a RideFile
> object for each session. Unfortunately, it appears that GC is saving the
> imported sessions as TCX files, and this has two side effects: first, all
> automatic lap information is lost, second, it does not appear to save some
> of the Garmin Vector specific metrics (for example Left Right Balance).
>
> I was wondering if you have some advice on how to save the imported data so
> that no information is lost? It would seem to me that the best option
> would be to generate individual FIT files for the activity, this way, no
> info would be lost. I'm willing to spend some time doing that, but I wanted
> to check first if you have a better idea, since I'm not that familiar with
> the GC source code.

It would appear you're further along than I am. So at the moment I have no
insights to offer. Maybe Ale or Mark?

>
> Thanks,
> Alex.
>
> On Tuesday, May 12, 2015 at 11:26:16 PM UTC+8, Jan de Visser wrote:

Alex Harsanyi

unread,
Jun 3, 2015, 9:00:39 AM6/3/15
to golden-che...@googlegroups.com, liver...@gmail.com

I have made some progress on the multi sport FIT file import, the new changes are available here:


I switched the internal storage of multisport files from TCX to JSON, as the TCX file did not record cycling dynamics metrics from Garmin Vector.  The only other place where this is used is when importing multisport files from SportTracks, I assume that code had the same problem.

The single activity FIT import is not affected by this.

The problem now is that the auto interval discovery and the power zone data is not updated for a bike session that is part of a multi-sport session.  I assume this is because the bike is the third session in the file and the code only updates the first activity?  Mark, if you can point me to the place where the metrics and intervals are updated, so I can update that code too?

Mark, would you be happy to accept this mechanism for multi-sport FIT import?   It shows up each session from the FIT file as a separate activity.  This allows analyzing each session individually, but not the activity as a whole. 

I can send you a multi-sport file privately if you want to test the code.

Best Regards,
Alex.
Reply all
Reply to author
Forward
0 new messages