alex-hhh / ActivityLog2

Analyze data from swim, bike and run activities
https://alex-hhh.github.io/
GNU General Public License v3.0
336 stars 25 forks source link

Import Heart Rate data from swim activities #4

Open alex-hhh opened 6 years ago

alex-hhh commented 6 years ago

Garmin HRM-Tri and HRM-Swim Heart Rate monitors can record HR data for swimming activities. These devices store the data on the monitor itself while submerged and it is sent to the main device at the end of the activity. The resulting FIT files record the HR data as additional FIT files appended to the main one. These are called chained FIT files in the documentation.

The main issue is that normal FIT lap swim activities only record pool lengths and no data during the crossing of that pool length. We only store one pseudo track point for each lentgth which is needed as only track points can record distance. The lap swim data is in the length entry and data frames for swim activities hold lenghts and not track points.

This will have to play nice w/ the swim lap editor. In HR data will be time based and we will have to correlate it somehow with the rest of the activity which is lap/length based.


Update (27 Aug 2021) Pull request #75 added support HR data in lap swim activities, the following are remaining tasks:

alex-hhh commented 4 years ago

Also check f0030.fit (and associated notes), which has inline HR data, which is imported correctly, but not shown in "Lap Swimming" mode (only in plan "Swimming" mode).