cagnulein / qdomyos-zwift

Zwift bridge for smart treadmills and bike/cyclette
https://www.qzfitness.com/
GNU General Public License v3.0
337 stars 103 forks source link

[BUG] Stages Solo Indoor Cycle Resistance Glitch #2314

Open Kevans34 opened 2 weeks ago

Kevans34 commented 2 weeks ago

Describe the bug The resistance glitches between 1-15 units while riding without any manual changes.

To Reproduce Steps to reproduce the behavior:

  1. Connect to bike via Bluetooth
  2. Begin pedaling
  3. See resistance skip around
  4. See error

Expected behavior The resistance should not change without me manually changing it.

Screenshots If applicable, add screenshots to help explain your problem.

https://github.com/cagnulein/qdomyos-zwift/assets/168491076/447502f2-2bc9-4e98-a694-3ebe464369c0

Desktop (please complete the following information): Using Qz app on my iPhone iOS version 17.4.1

Smartphone (please complete the following information): -iphone xs, iOS version 17.4.1

Append a debug log debug-Mon_Apr_29_17_54_36_2024.log debug-Mon_Apr_29_17_30_47_2024.log debug-Mon_Apr_29_17_56_26_2024.log

Follow this guide https://github.com/cagnulein/qdomyos-zwift/wiki/How-do-i-get-the-debug-log-in-case-something-doesn't-work%3F

Additional context There doesn’t appear to be any difference between the resistance and peloton resistance outputs. I believe this is because stages doesn’t have a typical resistance range. It’s has gears and a knob for micro adjustments.

cagnulein commented 2 weeks ago

hi @Kevans34 log checked, as I said your bike doesn't report the resistance, so QZ is calculating it based on your wattage and cadence. Since cadence and wattage are changing fast also the resistance is effected. The only thing that I can do is adding a average on the resistance (maybe 5s of average is enough to stabilize it). Let me know what do you think

Kevans34 commented 2 weeks ago

Hi!

Thank you! Are you referring to the power average 5 second button in settings (image attached)? If so, that video was taken with the button already being activated.

Thanks for taking a look and brainstorming!

Kaleigh


From: Roberto Viola @.> Sent: Tuesday, April 30, 2024 1:44:00 AM To: cagnulein/qdomyos-zwift @.> Cc: Kevans34 @.>; Mention @.> Subject: Re: [cagnulein/qdomyos-zwift] [BUG] Stages Solo Indoor Cycle Resistance Glitch (Issue #2314)

hi @Kevans34https://github.com/Kevans34 log checked, as I said your bike doesn't report the resistance, so QZ is calculating it based on your wattage and cadence. Since cadence and wattage are changing fast also the resistance is effected. The only thing that I can do is adding a average on the resistance (maybe 5s of average is enough to stabilize it). Let me know what do you think

— Reply to this email directly, view it on GitHubhttps://github.com/cagnulein/qdomyos-zwift/issues/2314#issuecomment-2084494643, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIFPQRD6VLUQWESHUADVV6DY744TBAVCNFSM6AAAAABG7IXXIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBUGQ4TINRUGM. You are receiving this because you were mentioned.Message ID: @.***>

cagnulein commented 2 weeks ago

@Kevans34 actually I'm using that setting only to the wattage tile. My idea was to try to extend this also the resistance to check if it's better if you agree. Try to disable the "power average 5 second" and see how bad is the wattage tile compared to the "power average 5 second" turned on. It should be the same on the resistance. Probably the best way to see this is trying :)

I can try to simulate the implementation with chat gpt using your log, hold on

cagnulein commented 2 weeks ago

image image

not so better...is your bike showing the resistance somehow? another idea is to stabilizing it withing a range, for example 5 levels, so show a different resistance value only if it's outside a range of 5 or 10 for example

Kevans34 commented 2 weeks ago

Sorry for the delay! That could defintiely work.

The bike is kind of weird actually. The only metrics the built in screen shows is heart rate calories cadence and power. For resistance it has a knob and a lever attached the the knob. The lever has 3 shifting positions which is suppose to make it easier to switch to different resistance intensities (low, medium, high) and the knob is for micro adjustments. When I have played around with it I have noticed that if I shift the lever from gear 1 to 2 not much changes in terms of the resistance on Qz but the feel on the bike is different. In general, the wattage does appear to be relatively consistent though with what the bike screen shows and what Qz shows- it just fluctuates and drops randomly sometimes only 2 units other times 15 units.

I don’t want this to take up alot of your time, maybe this bike just isn’t cut out for what id like to do with it at the gym. Luckily Qz works spendidly on my echelon bike at home!

cagnulein commented 2 weeks ago

@blautob are you still using the patch that I did for you in the #1236 ? I would like to implement for @Kevans34 as well since the code is the same. Let me know, thanks!

stale[bot] commented 1 day ago

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.