mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-05 04:57:32 +01:00
WorkoutRecorder now reports pause intervals, the ride's end time and whether each heart-rate sample came from Apple Health; pauses can be backdated and the metrics source swapped after a trainer reconnect. AutoRideController starts, pauses, resumes and ends rides from the trainer's cadence/power (10 s pause, 5 min idle stop, 2 min disconnect stop), or only watches for a ride to cue the Health prompt. HealthWorkoutPayload turns a ride into batched HealthKit series (distance integrated from speed, energy from power, no HR read from Health, sync id, <5 min skipped). HealthRideService ties it to the per-app default, the explicit choice and the channel. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>