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/durationto watts via computeBikeAvgPower then project watts to cal/hr via computeBikeCalPerHour. Whencaloriesis 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.
Parameters
Section titled “Parameters”The raw split record plus its modality.
calories?
Section titled “calories?”number
Split calories — required for the bike calorie-driven path.
distanceMeters
Section titled “distanceMeters”number
Distance covered, in metres.
durationSeconds
Section titled “durationSeconds”number
Split duration, in seconds.
modality?
Section titled “modality?”Modality | null
Console modality; null/undefined uses the pace-driven path.
strokeCount
Section titled “strokeCount”number
Total strokes (or revolutions) in the split.
Returns
Section titled “Returns”The four derived metrics.