4

在锻炼期间,Garmin 允许您暂停录制,这样您的分段时间和配速不会受到影响。TCX 格式中如何表示这些暂停时间段?我查看了 TCX架构,但没有找到明显的答案。

4

3 回答 3

7

TCX 文件中的活动分为几圈。每圈包含一个或多个轨迹,其中包含轨迹点,轨迹点是位置、心率等的单独记录。如果您暂停并重新启动手表,则暂停会关闭当前曲目,重新启动会打开一个新曲目。因此,例如,如果您在第一英里暂停两次,在每英里使用自动圈,第一圈将包含三个轨道。分析软件应该使用这种结构来计算出手表在每个 Track 中的最后一个 Trackpoint 之后暂停,并在下一个 Track 中的第一个 Trackpoint 处重新启动。

我也找不到这方面的任何文件;当我需要将 Timex .pwx 文件转换为 TCX 以上传到不正确支持 pwx 的站点时,它基于对 Garmin 数据的检查。

于 2014-12-06T00:06:28.080 回答
4

下面是一个 TCX 文件的摘录,我在其中按下了“停止”,然后又按下了“开始”……也许这会有所帮助。

<?xml version="1.0" encoding="UTF-8"?>
<TrainingCenterDatabase
  xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd"
  xmlns:ns5="http://www.garmin.com/xmlschemas/ActivityGoals/v1"
  xmlns:ns3="http://www.garmin.com/xmlschemas/ActivityExtension/v2"
  xmlns:ns2="http://www.garmin.com/xmlschemas/UserProfile/v2"
  xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://www.garmin.com/xmlschemas/ProfileExtension/v1">
  <Activities>
    <Activity Sport="Biking">
      <Id>2014-11-24T11:13:26.000Z</Id>
      <Lap StartTime="2014-11-24T11:13:26.000Z">
        <TotalTimeSeconds>1608.813</TotalTimeSeconds>
        <DistanceMeters>8046.74</DistanceMeters>
        <MaximumSpeed>7.539000034332275</MaximumSpeed>
        <Calories>185</Calories>
        <AverageHeartRateBpm>
          <Value>117</Value>
        </AverageHeartRateBpm>
        <MaximumHeartRateBpm>
          <Value>133</Value>
        </MaximumHeartRateBpm>
        <Intensity>Active</Intensity>
        <TriggerMethod>Manual</TriggerMethod>
        <Track>
          <Trackpoint>
            <Time>2014-11-24T11:13:26.000Z</Time>
            <Position>
              <LatitudeDegrees>51.98118514381349</LatitudeDegrees>
              <LongitudeDegrees>5.9239620342850685</LongitudeDegrees>
            </Position>
            <AltitudeMeters>16.399999618530273</AltitudeMeters>
            <DistanceMeters>2.990000009536743</DistanceMeters>
            <HeartRateBpm>
              <Value>100</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>2.7809998989105225</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
          <Trackpoint>
            <Time>2014-11-24T11:13:27.000Z</Time>
            <Position>
              <LatitudeDegrees>51.98120073415339</LatitudeDegrees>
              <LongitudeDegrees>5.92398751527071</LongitudeDegrees>
            </Position>
            <AltitudeMeters>16.399999618530273</AltitudeMeters>
            <DistanceMeters>5.28000020980835</DistanceMeters>
            <HeartRateBpm>
              <Value>100</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>2.4820001125335693</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
…
          <Trackpoint>
            <Time>2014-11-24T11:40:04.000Z</Time>
            <Position>
              <LatitudeDegrees>51.980356089770794</LatitudeDegrees>
              <LongitudeDegrees>5.986622795462608</LongitudeDegrees>
            </Position>
            <AltitudeMeters>9.800000190734863</AltitudeMeters>
            <DistanceMeters>7991.759765625</DistanceMeters>
            <HeartRateBpm>
              <Value>132</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>5.625999927520751</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
          <Trackpoint>
            <Time>2014-11-24T11:40:15.000Z</Time>
            <Position>
              <LatitudeDegrees>51.979938838630915</LatitudeDegrees>
              <LongitudeDegrees>5.986063219606876</LongitudeDegrees>
            </Position>
            <AltitudeMeters>10.399999618530273</AltitudeMeters>
            <DistanceMeters>8052.0400390625</DistanceMeters>
            <HeartRateBpm>
              <Value>132</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>5.52400016784668</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
        </Track>
        <Extensions>
          <LX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
            <AvgSpeed>5.001999855041504</AvgSpeed>
          </LX>
        </Extensions>
      </Lap>
      <Lap StartTime="2014-11-24T11:40:16.000Z">
        <TotalTimeSeconds>1722.237</TotalTimeSeconds>
        <DistanceMeters>8046.74</DistanceMeters>
        <MaximumSpeed>6.960999965667725</MaximumSpeed>
        <Calories>211</Calories>
        <AverageHeartRateBpm>
          <Value>127</Value>
        </AverageHeartRateBpm>
        <MaximumHeartRateBpm>
          <Value>139</Value>
        </MaximumHeartRateBpm>
        <Intensity>Active</Intensity>
        <TriggerMethod>Manual</TriggerMethod>
        <Track>
          <Trackpoint>
            <Time>2014-11-24T11:40:27.000Z</Time>
            <Position>
              <LatitudeDegrees>51.97950725443661</LatitudeDegrees>
              <LongitudeDegrees>5.985447987914085</LongitudeDegrees>
            </Position>
            <AltitudeMeters>10.600000381469727</AltitudeMeters>
            <DistanceMeters>8116.02001953125</DistanceMeters>
            <HeartRateBpm>
              <Value>133</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>5.290999889373779</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
          <Trackpoint>
            <Time>2014-11-24T11:40:39.000Z</Time>
            <Position>
              <LatitudeDegrees>51.97918321006</LatitudeDegrees>
              <LongitudeDegrees>5.984910121187568</LongitudeDegrees>
            </Position>
            <AltitudeMeters>11.0</AltitudeMeters>
            <DistanceMeters>8167.740234375</DistanceMeters>
            <HeartRateBpm>
              <Value>132</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>2.882999897003174</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>

…

          <Trackpoint>
            <Time>2014-11-24T12:40:18.000Z</Time>
            <Position>
              <LatitudeDegrees>51.97844828478992</LatitudeDegrees>
              <LongitudeDegrees>5.918068299070001</LongitudeDegrees>
            </Position>
            <AltitudeMeters>16.0</AltitudeMeters>
            <DistanceMeters>24482.119140625</DistanceMeters>
            <HeartRateBpm>
              <Value>119</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>2.733999967575073</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
          <Trackpoint>
            <Time>2014-11-24T12:40:32.000Z</Time>
            <Position>
              <LatitudeDegrees>51.97893384844065</LatitudeDegrees>
              <LongitudeDegrees>5.9180795308202505</LongitudeDegrees>
            </Position>
            <AltitudeMeters>16.0</AltitudeMeters>
            <DistanceMeters>24536.23046875</DistanceMeters>
            <HeartRateBpm>
              <Value>119</Value>
            </HeartRateBpm>
            <Extensions>
              <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
                <Speed>3.134999990463257</Speed>
              </TPX>
            </Extensions>
          </Trackpoint>
        </Track>
        <Extensions>
          <LX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2">
            <AvgSpeed>5.084000110626221</AvgSpeed>
          </LX>
        </Extensions>
      </Lap>
      <Creator xsi:type="Device_t">
        <Name>Garmin Forerunner 620</Name>
        <UnitId>3876874811</UnitId>
        <ProductID>1623</ProductID>
        <Version>
          <VersionMajor>3</VersionMajor>
          <VersionMinor>10</VersionMinor>
          <BuildMajor>0</BuildMajor>
          <BuildMinor>0</BuildMinor>
        </Version>
      </Creator>
    </Activity>
  </Activities>
  <Author xsi:type="Application_t">
    <Name>Garmin Connect API</Name>
    <Build>
      <Version>
        <VersionMajor>14</VersionMajor>
        <VersionMinor>10</VersionMinor>
        <BuildMajor>0</BuildMajor>
        <BuildMinor>0</BuildMinor>
      </Version>
    </Build>
    <LangID>en</LangID>
    <PartNumber>006-D2449-00</PartNumber>
  </Author>
</TrainingCenterDatabase>
于 2014-12-01T11:19:49.700 回答
2

我不知道这是否有帮助,但我有一块 FitBit 手表,我不小心在我的一次骑行中按下了暂停键。我想纠正它,我从来没有找到任何关于如何修复它的文档。因此,经过一些随机尝试通过上传和下载不同格式的文件来修复它后,我发现了一些东西。使用 GPS 上传到 Ride 时的原始文件有许多跟踪点:

<DistanceMeters>0.0</DistanceMeters>

Ride with GPS 报告的总距离为 7789.23 当我再次从 Ride with GPS 下载文件时,我意识到距离标记为 0.0 的轨迹点将具有 7789.23 为

<DistanceMeters>7789.23</DistanceMeters> 

所以我得到了我的原始 FitBit 文件并删除了所有 0.0 DistanceMeters 然后我再次上传并将我的距离固定到正确的最终距离应该有。另外,我看到我原来的 FitBit 文件的圈距为 7789.23,但我不必将它固定在圈本身上。因此,答案是计算出的距离和速度,当被跟踪器硬编码时,这些距离和速度可能会出现偏差。

于 2021-02-07T03:06:13.260 回答