Skip to content

Apply resistance gain to FTMS target-resistance-level writes (Toputure TEB5) - #4795

Open
cagnulein wants to merge 2 commits into
masterfrom
worktree-toputure-teb5-gain
Open

Apply resistance gain to FTMS target-resistance-level writes (Toputure TEB5)#4795
cagnulein wants to merge 2 commits into
masterfrom
worktree-toputure-teb5-gain

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

Summary

  • The Toputure TEB5 (and other bikes) internally amplify the resistance level they receive over FTMS (~25% higher than requested).
  • forceResistance() already supported a configurable bike_resistance_gain_f setting, but it was only applied on the FTMS_SET_INDOOR_BIKE_SIMULATION_PARAMS write path — the FTMS_SET_TARGET_RESISTANCE_LEVEL path used by TEB5 sent the raw, uncorrected value.
  • Applies the existing gain setting to that path too. Default gain is 1.0, so behavior is unchanged for everyone who hasn't touched the setting.

Fixes #4793

Test plan

  • TEB5 owner sets bike_resistance_gain_f ≈ 0.8 in Settings and confirms the bike's actual resistance now matches FitShow's requested level

cagnulein and others added 2 commits July 9, 2026 11:51
Fixes resistance mismatch on bikes like the Toputure TEB5, which
internally amplifies the received resistance level (~25% higher than
requested). The FTMS_SET_INDOOR_BIKE_SIMULATION_PARAMS branch already
applied bike_resistance_gain_f/offset, but the FTMS_SET_TARGET_RESISTANCE_LEVEL
branch used by TEB5 sent the raw value. Default gain is 1.0, so this
is a no-op for anyone not configuring it.

Fixes discussion #4793

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@stale

stale Bot commented Jul 25, 2026

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix This will not be worked on label Jul 25, 2026
@stale stale Bot closed this Aug 1, 2026
@cagnulein cagnulein reopened this Aug 1, 2026
@stale stale Bot removed the wontfix This will not be worked on label Aug 1, 2026
@stale

stale Bot commented Aug 16, 2026

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix This will not be worked on label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant