mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Tcx speed is Meters/Second not KPH
Recent update to support distance calculation from speed and time erroneously assumed speed units of kilometers per hour. The docs state that speed is represented in Meters per Second. Apologies, and thanks to Walter Bürki for his perseverance with me on this one. Fixes #598.
This commit is contained in:
@@ -95,7 +95,7 @@ TcxParser::endElement( const QString&, const QString&, const QString& qName)
|
||||
|
||||
} else if (qName == "DistanceMeters") { distance = buffer.toDouble() / 1000; }
|
||||
else if (qName == "Watts" || qName == "ns3:Watts") { power = buffer.toDouble(); }
|
||||
else if (qName == "Speed" || qName == "ns3:Speed") { speed = buffer.toDouble(); }
|
||||
else if (qName == "Speed" || qName == "ns3:Speed") { speed = buffer.toDouble() * 3.6; }
|
||||
else if (qName == "Value") { hr = buffer.toDouble(); }
|
||||
else if (qName == "Cadence") { cadence = buffer.toDouble(); }
|
||||
else if (qName == "AltitudeMeters") { alt = buffer.toDouble(); }
|
||||
|
||||
Reference in New Issue
Block a user