Skip to content

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.

Modality | null | undefined

The console modality, or null/undefined if unknown.

boolean

true for a bike, false otherwise.