Files
swiftcontrol/lib/services
Jonas Bark a920e0a49b feat(self-test): stop reporting a working virtual shift as "no control"
A trainer whose gear ratio lands but whose ERG target does not scored as
NO_CONTROL, because _verdictFromSteps had no case for "ERG failed, shifting
passed" and fell through to the catch-all. The rider was then told their
trainer ignores BikeControl and pushed onto a different control protocol —
while the shifting they came for had been working the whole time. Several
"Zwift Ready" trainers implement only the virtual-shifting subset of the Zwift
Sync command set and expect ERG over FTMS, so this is not a rare shape.

SelfTestVerdict.vsOkErgFail is the mirror of ergOkVsFail and reads
VS_OK_ERG_FAIL in a bundle, so a:1/3,b:2/3 no longer looks like a dead
trainer. Its card leads with the overlay — that setup is usable today — and
offers the protocol swap second, as the thing that buys ERG on top.

Also adds zwiftHandshake= to the trainer bundle line, for Zwift-Sync trainers
only. lastCtl=ok says the BLE write was accepted, not that the trainer acted
on it; `timeout` is what tells the two apart.

Bumps prop to f569bb1 (full Zwift sim message + the handshake state this
field renders).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 20:05:38 +02:00
..
2026-03-25 10:31:38 +01:00
2026-03-08 15:03:36 +01:00
2026-02-19 12:42:27 +01:00
2026-06-18 17:48:25 +02:00
2026-02-23 22:13:47 +01:00