isBikeModality
isBikeModality(
modality):boolean
Defined in: console-sdk/src/units/index.ts:470
Whether a modality uses the bike’s calorie-driven power/calorie math. Only
bike does; rower, ski, rhino, and an unknown/null modality all use
the pace-driven 2.8·v³ path, matching the firmware default.
Parameters
Section titled “Parameters”modality
Section titled “modality”Modality | null | undefined
The console modality, or null/undefined if unknown.
Returns
Section titled “Returns”boolean
true for a bike, false otherwise.