-
Notifications
You must be signed in to change notification settings - Fork 187
Description
Hi,
I have tried recently to integrate HR data from 'hr' fields at the end of the .fit file, because that's what HRM Swim sensor do.
No problem about that, and I've come across #69, but I believe we retrieve directly a timestamp and no need to do specific treatment.
So basically inside 'hr' field, we have 8 'event_timestamp' with associated timestamp, and at the end an array of 8 bpm values, so it's quite easy to match.
event_timestamp 1560.744140625
event_timestamp 1561.9326171875
event_timestamp 1561.9453125
event_timestamp 1563.3662109375
event_timestamp 1565.62109375
event_timestamp 1566.1171875
event_timestamp 1566.373046875
event_timestamp 1566.8525390625
event_timestamp_12 (250, 178, 123, 200, 119, 215, 124, 134, 135, 126, 153, 182)
filtered_bpm (73, 74, 74, 74, 74, 74, 75, 75)
Here's the problem : the timestamps seems "OK" but they do not quite match with the duration of the session.
I've attached a .fit file below, the maximum timestamp retrieved is 1567.8544921875 seconds = 26.11 minutes, but the overall duration of the session is 1h10
I believe all the bpm data are here, it's just that the timestamp associated are wrong
I think this issue was first adressed in #26 but close due to no example
Please ask if you need more information on my end
Thanks for the help !
Alexandre
[Edit : You can just import the .fit file into Garmin Connect or GoldenCheetah if you want to see the "real data", and the Heart Stream]
[Edit 2 : For reference, Golden Cheetah seems to do it here at 'decodeHr' method]
[Edit 3 : For reference as well, see 'Plugin Example (HR)' here
