Commit Graph

135 Commits

Author SHA1 Message Date
Jonas Acker
db1a31a233 feat(apps): Rampida supports OpenBikeControl
Rampida implements OpenBikeControl over Web Bluetooth (Chrome and Edge),
so it joins the shared OpenBikeControl trainer apps with Bluetooth only.
Logo bundled, with the openbikecontrol.org fallback for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:03:40 +01:00
Jonas Acker
4f52fd56ba fix(keymap): Rouvy keeps Zwift Ride D-pad up/down defaults
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:11:02 +01:00
Jonas Acker
ef4b87f3b9 fix(biketerra): send shifts over OpenBikeControl instead of keyboard only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:18:48 +01:00
Jonas Acker
9f6e8aba02 fix(biketerra): offer Virtual Shifting over Bluetooth only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:42:27 +01:00
Jonas Acker
da1995eecd feat(apps): Tour du Pain supports OpenBikeControl
Tour du Pain implements OpenBikeControl over Web Bluetooth (Chrome and
Edge on a computer), so it joins the shared OpenBikeControl trainer apps
with Bluetooth only. Logo bundled, with the openbikecontrol.org fallback
for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:10:38 +01:00
Jonas Acker
20ac37ab61 fix(keymap): don't default buttons to actions the trainer app can't perform
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:07:07 +01:00
Jonas Acker
a5d2dcf2a5 fix(zwift): D-pad navigates on a press and steers on a hold; sane defaults
As a Zwift Ride, a D-pad press moves through Zwift's menus and holding it
steers with the paddles, so the LEFT/RIGHT caption moves to Navigate.
Connecting a controller no longer adds a click default to a button the
app maps on another trigger only: Zwift's Y got "Menu" (unsupported) and
Z, like MyWhoosh/TPV steering, a duplicate hold. Zwift's power buttons do
nothing instead of an unsupported UI toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:03:38 +01:00
Jonas Acker
26ebfb2564 fix(unlock): no unlock-mode choice or Ride V2 explainer on Zwift and Rouvy
Both apps unlock a Click V2 or Ride V2 themselves once BikeControl is
connected to them. With either selected, a Click V2 skips the unlock-mode
page and runs as unlocked by Zwift (no restart loop, right side connects),
and the Ride V2 skips its one-time unlock explainer. Nothing is saved, so
switching to another app brings both back. A right-side-only choice stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 10:14:49 +01:00
jonasbark
b48077d89b feat(apps): Incyclist supports OpenBikeControl (#466)
Incyclist implements OpenBikeControl over Bluetooth and mDNS
(incyclist/devices#141) and finds trainers over Bluetooth and Wi-Fi
(Direct Connect), so it joins the shared OpenBikeControl trainer apps
with both transports. Logo bundled, with the openbikecontrol.org
fallback for patched builds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 22:34:43 +01:00
jonasbark
cdcfb37f90 feat(apps): 12 more OpenBikeControl trainer apps are officially supported (#460)
icTrainer, Auuki, VoxVelo, VeloWorkout, Pedalparty, VeloPopuli, Vieta,
DirtWatts, WattLog.pro, REZVIVO, OpenRadlr and zwoTrainer implement
OpenBikeControl over Bluetooth (VoxVelo and Vieta also over mDNS), as
listed in the protocol repository. They need nothing beyond their
connection methods, links and logo, so they share one class instead of
one file each. All of them except Vieta find trainers over Bluetooth
only. Logos are bundled and, for patched builds that lack them, loaded
from openbikecontrol.org.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:15:03 +01:00
Jonas Acker
33eeb8e18a Keep Zwift steering on the D-pad
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:28:14 +01:00
Jonas Acker
65e1430f12 Emulate a Zwift Ride for Zwift
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:28:41 +01:00
Jonas Acker
d415ba029b Add Ride drop button, shift button and paddle actions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 22:06:02 +01:00
Jonas Acker
7e6b9f16cc Merge remote-tracking branch 'origin/main' into 7.4.1 2026-11-02 09:31:32 +01:00
Jonas Acker
23df56db1a feat(apps): Velotoss also connects over Bluetooth
Its browser version now reaches the OpenBikeControl service over Web Bluetooth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 19:20:40 +01:00
Miguel
d3888e3804 feat(apps): Grimpa lists its navigation buttons too
Grimpa now acts on Up, Down, Left, Right, Select and Back (its setup
steps and the questions during a ride), and sends them in App
Information, so they are listed up front as well.
2026-11-01 12:05:36 +01:00
Miguel
2b4764056c feat(apps): Grimpa is officially supported over OpenBikeControl (Bluetooth)
Grimpa (https://www.grimpa.cc) implements OpenBikeControl as a BLE
central in the browser (Web Bluetooth): it writes App Information
listing the buttons it acts on and reads Button State. It finds
trainers over Bluetooth only, so the Bridge offers Bluetooth alone and
same-device use is flagged as needing a second device. Its buttons are
listed up front so riders can map them before Grimpa first connects.
2026-11-01 11:54:37 +01:00
Jonas Acker
3d6a5231d4 Trainer app picker: onboarding grid in a sheet / popover; drop Rouvy icon
Change on the trainer app card opens the onboarding app grid: a bottom
sheet on phone-sized windows, a popover under the button on wider ones.
The Select dropdown is gone. Rouvy shows a monogram like the other
non-official apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 09:35:08 +01:00
Jonas Acker
da5d062eb9 feat(apps): Velotoss is officially supported over OpenBikeControl (mDNS)
Velotoss (https://velotoss.de), a bike-racing game for smart trainers,
implements OpenBikeControl over the network (mDNS). It finds trainers
over Bluetooth only, so the Bridge offers Bluetooth alone. The logo is
bundled and also served from bikecontrol.app for builds patched over
the air.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:44:03 +01:00
Ben Snyder
c5cc54cfbb feat(apps): Ride Cave lists its supported buttons before it connects
Review: riders can map their buttons to Ride Cave's actions without
connecting first. The same list Ride Cave sends in App Information.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:37:17 -04:00
Ben Snyder
8f8064b991 feat(apps): Ride Cave is officially supported over OpenBikeControl (Bluetooth)
Ride Cave (https://ridecave.com) implements OpenBikeControl as a BLE
central: it writes App Information listing the buttons it acts on and
reads Button State. It finds trainers over Bluetooth only, so the Bridge
offers Bluetooth alone and same-device use is flagged as needing a
second device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:16:29 -04:00
Jonas Acker
f9444073c4 Rouvy is no longer an official integration
Rouvy stays a selectable trainer app with its keymap and connection
methods, but is no longer grouped under "Officially supported" in the
app picker/onboarding, and the onboarding Zwift-controller note lists
its triggerable actions instead of the official-app copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:32:25 +02:00
Jonas Acker
75da13abc8 feat(apps): Biketerra is officially supported via OpenBikeControl (Bluetooth)
Biketerra now speaks the OpenBikeControl protocol over Bluetooth, so it
joins the officially supported apps with its own logo. The Zwift-style
Bluetooth connection and the keyboard shortcuts stay for setups that
don't use it.

Trainer app logos now render through TrainerAppLogo, which falls back to
SupportedApp.logoUrl when the bundled asset is missing. A patched build
can't gain new assets, so builds that predate a logo fetch it from the
website instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:44:32 +02:00
Jonas Acker
0d02c3644c fix(onboarding): same-device setups that can't reach the bridge explain the second device they need
The "needs a second device" explanation now covers every trainer app that
can't pick up BikeControl's bridge on the same device, not only MyWhoosh on
Android: FulGaz (Bluetooth only) and Microsoft Store apps on the same Windows
PC such as Tacx Training, which Windows walls off from network services on
that PC. The rule reads what each app declares (its transports on this
platform, whether it is a Store app) instead of naming apps.

Riders see it on the onboarding trainer step, in the trainer picker and on
the trainer page, where the Virtual Shifting option explains itself instead
of offering a Wi-Fi that can't work. FulGaz, which is never asked "this or
another device", gets a note up front that it has to run on another device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 21:18:15 +02:00
Jonas Acker
07c2936dd2 feat(mapping): warn when steering sits on a click, move it to long press
Steering and push-to-talk only act while the button is held; on a single
or double click the press and release go out back to back, so they do
next to nothing. InGameAction.requiresHold marks them and
KeyPair.holdActionOnClick finds them on a click.

- Action picker (drawer and wide detail pane): an inline warning under the
  picked action with "Assign to Long Press", which moves the action to the
  button's long press and clears the click. Without Pro, another trigger
  staying beside it asks Go Pro / replace first; a long press that does
  something else is replaced only after confirming. Built-in mappings are
  copied first.
- Mapping rows, trigger rows, trigger cards, the trigger popup and the
  Ride last-press strip mark an existing hold action on a click.
- Built-in mappings: two shipped steering on a single click; they now use
  long press (a short tap still sends a press and release). One mapping
  sent "steer left" for the right navigation button; it now steers right.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-04 18:03:12 +02:00
Jonas Acker
12d50ce2a6 feat(onboarding): done step offers the gear overlay for apps with their own gear
When a bridged trainer is held by an app that draws its own gear number
(MyWhoosh, Zwift, Rouvy, TrainingPeaks Virtual) and the overlay can be
shown on this device, the done step says the app keeps its own gear and
BikeControl's gear is in the overlay, with a "Show the gear overlay"
button that runs the existing enable path (draw-over permission on
Android). Not shown once the overlay is on or was declined. The home
screen and onboarding share trainerOverlayOffered().

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:23:40 +02:00
Jonas Acker
4216040c4b chore(apps): drop the Wahoo ELEMNT trainer app
The ELEMNT target (debug builds only) never worked in practice. Removed
with everything only it used: the di2Ble connection method, the virtual
Di2 D-Fly emulator and its connection tile, the button-editor section,
the four D-Fly channel actions and their strings in every locale.

The Shimano Di2 controller support is unrelated and stays.

A rider with the ELEMNT saved as their trainer app now loads as "no app
chosen". Button-simulator hotkeys saved for a D-Fly action are skipped
instead of making the whole hotkey map fail to decode.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 12:07:46 +02:00
Jonas Bark
b437d4f3da fix(zwift): send the app's renamed actions instead of dropping them
The reverse lookup that turns a trainer app's renamed action back into the
Zwift controller action returned the whole MapEntry instead of its key. The
expression's static type collapsed to Object?, so it compiled, matched no
case in the button switch, fell through to `_ => null` and came back
NotHandled — which the action chain reports as "No connection method
active".

Only actions the selected app actually renames were affected; everything
else took the `?? action` fallback and worked. With the app that renames
the Y and Z buttons, that is exactly Kudos and Pause: shifting, steering
and A/B kept working while those two silently did nothing over the network.

The same broken line sat in all three Zwift emulators (network, shared
DirCon/FTMS, BLE), so all three are fixed through one shared helper,
resolveControllerAction. In the BLE emulator that also makes the
`action == InGameAction.frontShift` comparison right below it type-safe
instead of comparing an Object? against an enum.

KeyPair.hasActiveAction matched the raw action against the emulators'
supported actions while the button editor lists them through the mapping,
so a renamed action read as unsupported there too. It now resolves the
action the same way the emulators do. (No current caller in lib/ — the
getter is only exercised by tests today — but the check is now consistent
with the delivery path it describes.)

Covered by test/emulator_mapped_action_test.dart: both renamed actions
reach their physical button on all three emulators, the unmapped actions
and the raw controller actions behind the mapping keep working, an action
no emulator handles is still reported unhandled, and the mapping does not
leak into apps that define none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 09:24:03 +02:00
Jonas Bark
2e9ee86a44 fix Biketerra support 2026-09-02 07:56:00 +02:00
Jonas Bark
1dcedd7509 feat(fulgaz): add FulGaz as a trainer app, Bluetooth virtual shifting only
FulGaz takes nothing from a controller. Decompiling 7.0.6 (Android) and
7.0.9 (macOS) found no key handling, no gamepad, no OpenBikeControl and no
Zwift service — and no trainer discovery over the network either: the macOS
build ships a "Direct Connect Trainers" local-network permission string with
nothing behind it (no NSBonjourServices, no Bonjour APIs linked, no UDP).

So the one thing BikeControl can be to it is a Bluetooth trainer on a second
device, doing the virtual shifting itself. Three capability members on
SupportedApp express that, all defaulting to today's behaviour so no other
app changes:

- virtualShiftingTransports — which Bridge transports the app can find us on.
  The enum's own doc comment already promised this; the member was missing.
  Narrowed to Bluetooth for FulGaz, which collapses the VS transport toggle
  and coerces a saved wifi mode.
- acceptsSimulatedInput — false for FulGaz, so Local and the remote
  Bluetooth keyboard/mouse stop being offered as dead ends.
- receivesButtonEvents — derived; pins the target to "another device" in both
  target pickers and in applyTrainerAppSelection, mirroring BikeControl.

Two consequences worth calling out. With every tile hidden,
hasNoConnectionMethod would have read as unfinished setup and disabled the
onboarding Continue button — for FulGaz that state is the finished one.
And the connection step promised a network advertisement the app never looks
for, so apps with no wifi transport now get their own Bluetooth wording
(6 locales).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-28 16:28:14 +02:00
Jonas Bark
048848698f feat(apps): add Tacx Training
Tacx pairs no external controllers — no OpenBikeControl, no Zwift
Click/Play/Ride — so its `connections` list is empty: buttons reach it as
simulated keystrokes and gears come from the Bridge, which does the virtual
shifting itself. The keymap is Tacx's Settings → Keyboard Shortcuts screen
one-for-one, which is the complete list: Space pauses/resumes, Esc quits, Tab
changes training views, the D-pad drives difficulty and screen paging, L skips
the current step. There is no shift, steer, select or menu shortcut to bind, so
those buttons keep the action they inherit rather than a keystroke that goes
nowhere.

The trainer side is where Tacx does take something from us. It looks for
trainers on the local network, which is the advertisement the Bridge already
publishes, but it wants to see a `product-id` before it lists one — so
`SupportedApp.trainerMdnsTxt` lets an app contribute TXT fields and Tacx fills
that one in. Scoped to the selected app: an identity one app needs is noise to
every other, and the emulator re-advertises on every trainer-app change, so
switching apps swaps the record with it. Value and reasoning live in prop.

Tacx is also the first app that offers no connection method at all on a second
device, which left the onboarding step with a "Connection methods" heading
standing over nothing; it is now dropped when the list is empty.

Verified against Tacx Training 4.85.3.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 14:29:19 +02:00
Jonas Bark
8170cd97b9 fix(trainingpeaks): direction and face buttons now reach the app
The TPV profile mapped navigationUp and the coloured face buttons to a
keyboard key / touch position only. _handleDirectConnect forwards a KeyPair
solely when it carries an inGameAction, so those presses never left the
phone — and an actionless default is worse than no default at all, because
it shadows the action the button would otherwise inherit from
ControllerButton.action via Keymap.addNewButtons (which is exactly why
navigationDown, absent from the profile, worked).

Same gap hit the HUD-toggle and difficulty defaults. Steer Left/Right are
added to defaultObpSupportedButtons as well: TPV advertises them in its
live app-info frame, but without them the button editor hid steering
before a connection.

Reported by a rider on Android with TPV on an iPad, whose log showed
"Sent Down button press" next to "No connection method active".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 12:54:00 +02:00
Jonas Bark
08914aff7e feat(config): link to each trainer app's official site from the chooser
The trainer-app picker now shows an external-link button next to every app
that has an official site, opening it in the browser. Adds an officialUrl to
SupportedApp with per-app overrides (Strappo, MyWhoosh, Rouvy, Zwift,
TrainingPeaks Virtual, Biketerra, BikeControl, OpenBikeControl).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 12:52:23 +02:00
Jonas Bark
7e1de77bdd feat(apps): add Strappo as an officially supported trainer app
Strappo (getstrappo.com) integrates the open OpenBikeControl protocol, so it
joins the supported-apps list as an official network/BLE partner (obpMdns +
obpBle) — button events arrive over the protocol, so no keyboard keymap is
needed. Adds the SupportedApp definition, registry entry, partner logo asset,
and a registration test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 12:38:30 +02:00
Jonas Bark
ebe038e1e2 feat(help): link to the bikecontrol.app setup guide for the controller + app
Adds a "Use {controller} with {app}" link that opens the matching
bikecontrol.app/use-<controller>-with-<app>/ how-to page:
- as the first entry in the Help & Support dropdown (above Instruction
  Videos), using the connected controller + selected trainer app;
- on the controller detail page, for that controller + the selected app.

Each controller device and trainer app maps to its website slug
(SupportedApp.helpSlug + a controller lookup in help_article.dart), with a
generic "other-training-app" fallback when a combination has no dedicated
page and no entry when the controller type has none. New localized string
useControllerWithApp across all 6 languages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 20:31:23 +02:00
Jonas Bark
59467b5a56 refactor: remove dead supportsNativeFrontShift getter
Re-introduced by a merge; the forward path emits the both-shifters combo
regardless of app, so the capability flag is unused.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 20:27:36 +02:00
Jonas Bark
5057d8b333 feat: supportsNativeFrontShift capability flag (Zwift=true)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 15:54:45 +02:00
Jonas Bark
57f0b707d8 enable trainingpeaks, version++ 2026-06-06 20:31:27 +02:00
Jonas Bark
afa5777e86 fixes 2026-05-21 22:25:28 +02:00
Jonas Bark
51f2455166 rouvy mode 2026-05-21 20:34:51 +02:00
Jonas Bark
75dd10371a show default OBP actions 2026-05-11 20:53:25 +02:00
Jonas Bark
fd870e356d adjustments 2026-04-28 20:15:38 +02:00
Jonas Bark
152ed69b16 feat: add Wahoo ELEMNT SupportedApp with di2Ble connection method 2026-04-28 18:49:03 +02:00
Jonas Bark
4766bff12f improve HID device logic 2026-04-28 18:48:32 +02:00
Jonas Bark
b7d9fba548 compatibility changes 2026-04-25 19:23:34 +02:00
Jonas Bark
080e8a5c90 ui fixes 2026-04-24 13:42:45 +02:00
Jonas Bark
972e13ad12 feat(apps): add BikeControl as a supported trainer app 2026-04-24 13:26:31 +02:00
Jonas Bark
03e1727d6a feat(supported-app): add per-app trainer connection types 2026-04-23 08:52:09 +02:00
Jonas Bark
df937d7fec feat(keymap): add virtualGearAmount on SupportedApp (MyWhoosh=30, default=24) 2026-04-20 09:14:06 +02:00
Jonas Bark
7339dbb540 integrate logos 2026-04-12 11:40:43 +02:00