easy-fit icon indicating copy to clipboard operation
easy-fit copied to clipboard

Incorrrect offset for altitude fields

Open michaelfomin opened this issue 7 years ago • 1 comments

The offset value for altitudes should be -500, it appears to be configured as +500.

When encoding altitude fit will use uint16 = 5 * (altM + 500)

So decoding should use altM = uint16 / 5 - 500 // offset should be -500

michaelfomin avatar Jul 06 '17 02:07 michaelfomin

Well, I think these values come from the FIT SDK and I didn't check. Are the altitudes wrong?

Haven't touched this code for a long, long time, sorry for the lack of knowledge 🥇

pierremtb avatar Jul 07 '17 16:07 pierremtb