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:
Gareth Coco
2010-05-10 17:18:57 -04:00
committed by Sean Rhea
parent d03d538498
commit 7941f0a9bc

View File

@@ -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();
}