Author Topic: Heart Rate Missing - tcx import  (Read 306 times)

Offline Simon

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: HTC 10
Heart Rate Missing - tcx import
« on: June 24, 2018, 12:56:51 »
Hi,
maybe the problem is in front of the screen, but I couldn't figure out how to use the Huawei watch 2 (wear os 2) heart rate sensor with locus. Think it's not (yet) supported. However, I recorded some tracks with Google fit and tried to import them in locus. The trajectories are shown correctly but the heart rate is missing.

I've tried to append one of the tcx files but it didn't work. Here's a gdrive link: https://drive.google.com/file/d/1Ojdv02sG_vXO8eHSEe_vKaW8mylHBO9a/view?usp=drivesdk
 
Hope that works and helps
 

Online menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10868
  • Thanked: 191 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Heart Rate Missing - tcx import
« Reply #1 on: June 25, 2018, 01:11:50 »
Good day Simon,
thanks for sharing a file. This TCX format is little unexpected for me. Heart rate values are stored in separate trackpoints without coordinates.
What I did now, is that I have attached heart rate values to previous trackpoints with coordinates.
Unfortunately result is not perfect, as you may see on screenshot.



May you post a screenshot with chart from any other app that display your data correctly? Thanks
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Simon

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: HTC 10
Re: Heart Rate Missing - tcx import
« Reply #2 on: June 25, 2018, 23:22:46 »
Hi Menion, professor of locus  :)

Thanks for your quick reply!
Here are some screenshots of goggle fit





I think your strategy should work, since the trackpoints seem to be in the correct order (continuously increasing time). Unfortunately it doesn't look like the distance is calculated properly. The same values are used over a lot of trackpoints with big gaps in-between.

Have you tried plotting your modified version against time?
 

Online menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10868
  • Thanked: 191 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Heart Rate Missing - tcx import
« Reply #3 on: June 26, 2018, 08:37:42 »
Time-based chart does not help here because trackpoints that create a chart simply miss HR values.
I made a little different change, so HR value is used for future trackpoints. 10 seconds was not enough, so I've set 60 seconds range. This means that HR value will be used for up to 60 seconds for next following trackpoints (or shorter if new fresh HR value appear).

The result is useful I believe



An even better solution should be to detect next HR value, interpolate values between and also do not use this HR value for next trackpoints if this is last HR value in the recording. Anyway, for now, current solution have to be enough. So next version ...
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: Simon

Offline Simon

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • Device: HTC 10
Re: Heart Rate Missing - tcx import
« Reply #4 on: June 26, 2018, 18:38:03 »
The graph looks great. Thank you for your effort. I consider the topic as closed and will take the tcx file off