From e28e69b248f28a7ef99266f88e49c6427f6a3e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 29 Sep 2019 11:24:20 +0200 Subject: [PATCH] Added support for enchanced altitude and speed entries --- src/data/fitparser.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/fitparser.cpp b/src/data/fitparser.cpp index 057e03c9..dd5b1398 100644 --- a/src/data/fitparser.cpp +++ b/src/data/fitparser.cpp @@ -265,6 +265,14 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def) if (val != 0x7f) ctx.trackpoint.setTemperature((qint8)val); break; + case 73: + if (val != 0xffffffff) + ctx.trackpoint.setSpeed(val / 1000.0f); + break; + case 78: + if (val != 0xffffffff) + ctx.trackpoint.setElevation((val / 5.0) - 500); + break; default: break;