Commit Graph

32 Commits

Author SHA1 Message Date
Jonas Bark
d985e6d2b5 feat(accessory): name the actions an accessory obeys, and where to assign them
An accessory's settings page had nothing to say about what the device can
actually do: its actions live on a controller's buttons, and the page that
would have shown them (button mapping) is hidden here because a fan has no
buttons of its own.

It now lists them — the six Headwind speed/HR actions, the four incline
ones — straight off the device via a new BaseDevice.assignableActions, and
hands over to the controller that can carry them: the connected one, since
that is the one a rider can test a mapping on right away. With no
controller around it says so rather than offering a dead link.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-11 16:23:28 +02:00
Jonas Bark
04c97f20dc fix(home): show accessories so a stray Headwind can be ignored
Every Headwind or Climb the scanner finds is connected automatically,
including one that isn't the rider's — a neighbour's fan through a wall.
Getting rid of it means putting it on the ignore list, and the only route
onto that list is "Disconnect & forget" on a device's settings page. But
accessories are excluded from controllerDevices, which is the only device
list the setup chain renders, so such a device appeared nowhere at all and
could not be dismissed.

They now get their own quiet section below the chain: one card per
accessory, no checklist, opening the settings page that already carries
the forget action. That page in turn drops the button-mapping section and
"Reset to defaults" for an accessory — a fan has no buttons, so both were
empty promises — and titles itself "Device Settings" instead of
"Controller Settings". A Headwind also stops presenting itself with the
default gamepad icon.

Auto-connecting to any accessory in range is left as it is: the rider
ignores the neighbour's fan once, and it stays gone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-11 16:05:25 +02:00
Jonas Bark
b2b63ea84a refactor(incline): extract ManualInclineDevice mixin shared by incline devices
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 23:30:48 +02:00
Jonas Bark
8bd23d7385 refactor(incline): rename Climb incline pipeline to device-agnostic Incline*
ClimbInclineSink → InclineSink, ClimbController → InclineController,
ClimbManualState → InclineManualState, ClimbMode → InclineMode.
Moves lib/bluetooth/climb/{climb_incline_sink,climb_manual_state,climb_controller}.dart
→ lib/bluetooth/incline/{incline_sink,incline_manual_state,incline_controller}.dart
and corresponding tests. Decouples InclineManualState from wahoo_climb.dart
constants (own kInclineManualMinGrade001/kInclineManualMaxGrade001, same values).
WahooKickrClimb and _ClimbRelaySink stay Climb-named; no behavior changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 23:27:58 +02:00
Jonas Bark
ae6dce0df2 feat(climb): WahooKickrClimb BLE device + ClimbInclineSink + Accessory marker
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 21:14:46 +02:00
Jonas Bark
a68b68a1b4 fix button mapping popup 2026-06-01 11:53:55 +02:00
Jonas Bark
6c9e2d9fe8 cleanup 2026-05-04 12:06:56 +02:00
Jonas Bark
3eda0fab48 fix Wahoo Kickr Bike detection 2026-04-29 16:42:40 +02:00
Jonas Bark
f387c630ec feat(controller): per-device ControllerLayout overrides 2026-04-24 11:05:32 +02:00
Jonas Bark
989a1a2f68 fix firmware version check on wahoo kickr bike pro 2026-04-08 08:25:52 +02:00
Tumlinh
1a011dd9de Add two extra Wahoo KICKR headwind actions for cyclic speed increase/decrease 2026-03-14 12:14:35 +00:00
Tumlinh
b7f337b111 Add two actions to Wahoo KICKR headwind to increase and decrease speed respectively 2026-03-14 11:43:40 +00:00
Jonas Bark
ca46ebdd51 add support for Kickr Bike V1 + V2
# Conflicts:
#	CHANGELOG.md
2026-03-11 09:46:47 +01:00
Jonas Bark
5afb402ddb kickr headwind adjustments #11 2026-02-10 09:11:39 +01:00
copilot-swe-agent[bot]
1792d8de01 Fix headwind first button press issue by adding delay between mode and speed commands
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2026-02-10 07:44:37 +00:00
Jonas Bark
8997b54a9a group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
1d42e853f3 kickr headwind: write without response to potentially fix #11 2026-01-15 08:55:03 +01:00
Jonas Bark
5a67f2ee76 remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
62622286f5 add wahoo kickr support to readme 2025-12-11 09:26:08 +01:00
Jonas Bark
416eb67bb7 adjust Headwind logic according to comment from https://github.com/jonasbark/swiftcontrol/issues/11#issuecomment-3634041684 2025-12-09 21:56:45 +01:00
Jonas Bark
f91d956e21 work on issue #11 2025-12-09 09:00:01 +01:00
Jonas Bark
50a0175de6 fix build 2025-12-08 18:01:47 +01:00
copilot-swe-agent[bot]
90b45fd773 Implement proper Headwind protocol with state tracking and mode switching
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-08 16:48:56 +00:00
copilot-swe-agent[bot]
6779b71c0a Refactor Headwind control logic and remove buttons
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-08 16:27:47 +00:00
copilot-swe-agent[bot]
eb485c1973 Address code review feedback: improve type annotations and validation
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-08 08:26:29 +00:00
copilot-swe-agent[bot]
da757874f4 Add KICKR Headwind support implementation
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-08 08:23:27 +00:00
Jonas Bark
ec7a4d526b attempt to support Wahoo Kickr Bike Pro #195 2025-11-29 21:54:24 +00:00
Jonas Bark
ad88521e68 attempt to support Wahoo Kickr Bike Pro #195 2025-11-29 19:36:35 +00:00
Jonas Bark
e4cbca0987 refactoring #3 2025-10-26 17:21:00 +01:00
Jonas Bark
f2dbf47832 refactoring #1 2025-10-26 16:26:56 +01:00
Jonas Bark
80c8e9c55a update readme 2025-10-22 09:43:28 +02:00
Jonas Bark
a377089b77 initial support for wahoo kickr bike shifting 2025-10-13 12:13:45 +02:00