mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Fixed coordinates conversion
This commit is contained in:
parent
9789982626
commit
82cf7b49ca
@ -176,12 +176,12 @@ bool FITParser::parseData(MessageDefinition *def, quint8 offset)
|
|||||||
case 0:
|
case 0:
|
||||||
if (val != 0x7fffffff)
|
if (val != 0x7fffffff)
|
||||||
trackpoint.rcoordinates().setLat(
|
trackpoint.rcoordinates().setLat(
|
||||||
(val / (double)0x7fffffff) * 180);
|
((qint32)val / (double)0x7fffffff) * 180);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (val != 0x7fffffff)
|
if (val != 0x7fffffff)
|
||||||
trackpoint.rcoordinates().setLon(
|
trackpoint.rcoordinates().setLon(
|
||||||
(val / (double)0x7fffffff) * 180);
|
((qint32)val / (double)0x7fffffff) * 180);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
if (val != 0xffff)
|
if (val != 0xffff)
|
||||||
|
Loading…
Reference in New Issue
Block a user