Skip to content

computeRecordSplitMetrics

computeRecordSplitMetrics(input): DerivedSplitMetrics

Defined in: console-sdk/src/units/index.ts:493

Computes every derived split metric from a raw record, branching on modality exactly as the firmware does (computeRecordSplitMetrics parity):

  • Bikes invert calories/duration to watts via computeBikeAvgPower then project watts to cal/hr via computeBikeCalPerHour. When calories is omitted the bike falls back to the pace-driven path (matching the firmware fallback, which then reports the much larger pace-curve watts).
  • Rowers / skiers / rhino / unknown derive watts from pace via computeAvgPower then cal/hr via computeCalPerHour.

pace500 and spm are modality-independent.

The raw split record plus its modality.

number

Split calories — required for the bike calorie-driven path.

number

Distance covered, in metres.

number

Split duration, in seconds.

Modality | null

Console modality; null/undefined uses the pace-driven path.

number

Total strokes (or revolutions) in the split.

DerivedSplitMetrics

The four derived metrics.