mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Add read power from variable ns3:Watts.
TCX files exported from Garmin Connect have power as follows:
<Extensions>
<ns3:TPX>
<ns3:Speed>2.236999988555908</ns3:Speed>
<ns3:Watts>68</ns3:Watts>
</ns3:TPX>
</Extensions>
Fixed parser to read this as a valid power reading.
Fixes #65
This commit is contained in:
@@ -73,7 +73,7 @@ TcxParser::endElement( const QString&, const QString&, const QString& qName)
|
||||
{
|
||||
distance = buffer.toDouble() / 1000;
|
||||
}
|
||||
else if (qName == "Watts")
|
||||
else if (qName == "Watts" || qName == "ns3:Watts")
|
||||
{
|
||||
power = buffer.toDouble();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user