Refine telemetry-driven HUD and fitness feedback

This commit is contained in:
2026-03-24 11:24:50 +08:00
parent 2c03d1a702
commit a117a25824
12 changed files with 2071 additions and 211 deletions

View File

@@ -0,0 +1,37 @@
export interface TelemetryPresentation {
timerText: string
mileageText: string
distanceToTargetValueText: string
distanceToTargetUnitText: string
speedText: string
heartRateTone: 'blue' | 'purple' | 'green' | 'yellow' | 'orange' | 'red'
heartRateZoneNameText: string
heartRateZoneRangeText: string
heartRateValueText: string
heartRateUnitText: string
caloriesValueText: string
caloriesUnitText: string
averageSpeedValueText: string
averageSpeedUnitText: string
accuracyValueText: string
accuracyUnitText: string
}
export const EMPTY_TELEMETRY_PRESENTATION: TelemetryPresentation = {
timerText: '00:00:00',
mileageText: '0m',
distanceToTargetValueText: '--',
distanceToTargetUnitText: '',
speedText: '0',
heartRateTone: 'blue',
heartRateZoneNameText: '激活放松',
heartRateZoneRangeText: '<=39%',
heartRateValueText: '--',
heartRateUnitText: '',
caloriesValueText: '0',
caloriesUnitText: 'kcal',
averageSpeedValueText: '0',
averageSpeedUnitText: 'km/h',
accuracyValueText: '--',
accuracyUnitText: '',
}