Speed-source arbitration and GPS quality reporting #19

Open
opened 2026-08-31 17:14:41 +02:00 by robert · 0 comments
robert commented 2026-08-31 17:14:41 +02:00 (Migrated from git.butzei.de)

Goal

Pick the best available speed source and tell the watch which one is live.

Acceptance criteria

  • Wheel sensor preferred when it has reported within the last 3 s, GPS otherwise
  • SPEED_SOURCE sent to the watch: 0 none, 1 GPS, 2 wheel sensor
  • GPS_QUALITY derived from fix accuracy and age, 0-3
  • Switching sources does not produce a visible jump or a distance discontinuity
  • With no source at all the watch shows a clear no-signal state rather than a stale number

Files

  • companion/.../location/SpeedSourceArbiter.kt
## Goal Pick the best available speed source and tell the watch which one is live. ## Acceptance criteria - [ ] Wheel sensor preferred when it has reported within the last 3 s, GPS otherwise - [ ] `SPEED_SOURCE` sent to the watch: 0 none, 1 GPS, 2 wheel sensor - [ ] `GPS_QUALITY` derived from fix accuracy and age, 0-3 - [ ] Switching sources does not produce a visible jump or a distance discontinuity - [ ] With no source at all the watch shows a clear no-signal state rather than a stale number ## Files - `companion/.../location/SpeedSourceArbiter.kt`
Sign in to join this conversation.
No description provided.