Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Gears don't work for mid-work free ride segment #2897

Open
wizzy99 opened this issue Dec 10, 2024 · 53 comments · May be fixed by #2961
Open

[BUG] Gears don't work for mid-work free ride segment #2897

wizzy99 opened this issue Dec 10, 2024 · 53 comments · May be fixed by #2961
Assignees
Labels
bug Something isn't working

Comments

@wizzy99
Copy link

wizzy99 commented Dec 10, 2024

QZ was set as resistance, with the virtual Wahoo drivers for power and cadence. Play connected directly to Zwift.

Did a Zwift workout that had a free ride (non-ERG) segment. I could see the virtual gears changing on the screen, but it didn't have any impact on the trainer resistance (it stayed at the last ERG level). I had to manually change gears, and then when the 1 minute free ride ended, ERG didn't re-engage appropriately. I ultimately repaired directly with the trainer to get ERG working again.

Expected behavior
Virtual gear support during free ride with a return to ERG when free ride segment is done.

Smartphone (please complete the following information):

  • Device: iphone 16 pro
  • OS: 18.1.1
  • Version : 2.18.9 (test drive)

I haven't had time to try to recreate the bug to capture a log.

@wizzy99 wizzy99 added the bug Something isn't working label Dec 10, 2024
@cagnulein
Copy link
Owner

hi @wizzy99 i need unfortunately a debug log to check your case.
thanks

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

debug-Tue_Dec_10_11_41_04_2024.log

ok, just recreated. I did a custom workout with 2 short intervals (1 min / 10 seconds each) , a 30 second freeride, and then a 10 min cooldown (that I stopped). ERG turned off about halfway through the free ride but gear changes had to impact. When ERG reengaged, it was way under target.

@cagnulein
Copy link
Owner

Hah i got the issue better now. The issue is only when you have erg events inside? I mean on a free ride everything works fine with gears?

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

The opposite. Virtual gears don't work at all during the free ride portion of the workout. I click the button on the Play, the Zwift screen changes, but there's no impact to resistance. (How) does QZ handle the transition from ERG to free back to ERG on the same ride?

@cagnulein
Copy link
Owner

Never tried with the gears, that's why I was asking to try a free ride and check if it works correctly there. So we have a starting point

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

I've used it successfully multiple times on free rides, last night was my first workout attempt since I set up the virtual gears.

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

Sounds good. Let me know if there are any scenarios you want me to test, etc.

@cagnulein
Copy link
Owner

cagnulein commented Dec 10, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 10, 2024

Here you go. Virtual worked fine in this freeride with a robopacer.

debug-Tue_Dec_10_13_06_29_2024.log

@cagnulein
Copy link
Owner

Thanks I will compare them in the next days

@cagnulein
Copy link
Owner

hi @wizzy99 log checked there are 3 different issues I guess:

  1. the fact erg doesn't rengage: i guess it's because you set the trainer under the ftms bike setting in the bike options. can you try to set it to disable and press ok and restart qz? then you will have the full control of the gears under the wahoo options in the bike options
  2. zwift uses the gears in the ERG mode to change the difficulty level, so it directly handled by zwift
  3. there is a known issue that I have still to understand that zwift when the "get gears from zwift" is enabled, it sends the target wattage scaled in some strange way, that's why you saw " it was way under target."

So try 1. and I will try in the next weeks to check the 3.

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

I disabled ftms and the experience was worse. ERG didn’t seem to work before the free ride, gears didn’t work in free ride, but maybe erg worked after free ride (but wasn’t exactly on target)

debug-Fri_Dec_13_14_06_00_2024.log

@cagnulein
Copy link
Owner

Which kickr version is this?

I will check the log in the next days, I'm really OVERWHELMED by tickets right now

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

kickr v5. No rush, I don't often do workouts with free ride, it just so happened the Baseline challenge has some.

@cagnulein
Copy link
Owner

cagnulein commented Dec 13, 2024 via email

@cagnulein
Copy link
Owner

cagnulein commented Dec 13, 2024 via email

@wizzy99
Copy link
Author

wizzy99 commented Dec 13, 2024

I just finished a ride so won't be able to try the ERG tile until tomorrow, but I did try a normal free ride with FTMS disabled and the gears didn't do anything. I had to go back into FTMS and enable Wahoo to get the virtual gears to work.

I'm with you, I'd prefer not to toggle ERG on and off, the workout is controlling than and it would be great if qz could handle. Appreciate all your hard work!

@cagnulein
Copy link
Owner

cagnulein commented Dec 14, 2024 via email

Copy link

stale bot commented Dec 29, 2024

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 Dec 29, 2024
@cagnulein
Copy link
Owner

@wizzy99 happy new year! fixed in the #2961 !
send me an email to roberto.viola83 at gmail.com indicating this ticket and if you are on android or iOS. Thanks

you will have to select wahoo kickr to all the tiles in zwift, also the resisstance one now! let me know!

@stale stale bot removed the wontfix This will not be worked on label Jan 1, 2025
@cagnulein cagnulein linked a pull request Jan 1, 2025 that will close this issue
@serbasan
Copy link

serbasan commented Jan 2, 2025

Hi Roberto,

I’ve tested version 2.18(991) and today I completed a race in SIM mode and a workout in ERG mode.

In ERG mode, everything works quite well with the Wahoo Kickr selected in all Zwift tiles. However, I encountered an issue in SIM mode: there’s now a noticeable delay between pressing the gear shift button on the Zwift Play controller and the bike adjusting its resistance. Currently, the delay is 1.6 seconds, whereas it used to be around 0.6 seconds. This difference is significant and makes the ride feel uncomfortable.

I’ve run several tests comparing version 2.18(985), where the response is quick, to version 2.18(991), where the delay is much longer. I’m attaching two logs: one for ERG mode and another for SIM mode.

Looking forward to your feedback.

Best regards.
debug-jue_ene_2_08_07_29_2025.log
debug-jue_ene_2_08_08_17_2025.log

@cagnulein
Copy link
Owner

thanks @serbasan yes i received similar feedbacks also from the others. i will send you a new one ASAP. This is currently a branch, so in case you can return to the previous build via the test flight app.thanks

@wizzy99
Copy link
Author

wizzy99 commented Jan 2, 2025

When I started, it took several seconds before I actually started moving. Changes between ERG power were delayed by 6-7 seconds. Free ride seemed to work ok, but when switching back to ERG mode, the power shown in Zwift was a lot higher than shown in the qz app.
Uploading debug-Thu_Jan_2_11_03_26_2025.log…

@cagnulein
Copy link
Owner

Ok no need to test anymore, revert to the previous one by testflight. It's strange that on my side is working fine

@XComelli
Copy link

XComelli commented Jan 3, 2025

Hi Roberto,

As previously discussed on the Zwift Forum, I've been using the latest beta with the following setup:
Resistance: Managed via Qz Virtual Direct Connect
Power/Cadence: Directly connected to the Kickr via Direct Connect

Virtual Shifting with Zwift Play has been functioning well during several rides.

There was one instance when I lost visibility of the Kickr Direct Connect, but I was still able to pair it to Kickr ANT+ and maintain Virtual Shifting. While workouts don't seem to function properly, this beta overall performs better than the previous version "at least" for my needs! so, you're moving in the right direction.

@XComelli
Copy link

XComelli commented Jan 6, 2025

Hi Roberto,

I’ve done several more rides, and with the following setup, virtual shifting works really well—though with one caveat:

Resistance: Managed via QZ Virtual Direct Connect
Power: Connected to the Kickr via wired Direct Connect
Cadence: ANT+ via Assioma Power Meters

The caveat is that from the start of a ride, the gear numbers between QZ and Zwift don’t align:
2025-01-06_18-11-29_0
20250102_151046000_iOS

As I mentioned before, my workaround is to "Gear Up" all the way to 24 and then "Gear Down" to my desired gear. This works fine for solo rides but it isn't for a race or group ride.

Under Settings > Bike Options > Restore Gears on Startup = Disable (I tried both way)
Under Settings > Bike Options > Restore Specific Gears Value = Disable (I tried both way)
Under Settings > Zwift Options > Get Gears from Zwift = Enable

In Wahoo Options > Chainring size: 54
In Wahoo Options > Cog Size: 21

Is there anything else in the settings I can adjust or just a little bug?

@cagnulein
Copy link
Owner

@XComelli share a debug log with this issue (just a ride of 1 minute for example) so i will be able to check it! Thanks!

@XComelli
Copy link

XComelli commented Jan 7, 2025

@cagnulein I wasn't sure if you always prefer to create a new issue report. See below, what I describe above happens 100% of the time, so I should be able to recreate one way or the other.

debug-Tue_Jan_7_08_48_02_2025.log

@cagnulein
Copy link
Owner

wasn't sure if you always prefer to create a new issue report.

this one is ok @XComelli thanks

i checked the log, confirm one thing:

i see the session started at 08:48 but the issue comes at 09:21:51

is this right?

@XComelli
Copy link

XComelli commented Jan 7, 2025 via email

@cagnulein
Copy link
Owner

fixed @XComelli i will build a new one asap

@XComelli
Copy link

XComelli commented Jan 7, 2025

@cagnulein that's awesome!

Just a question -not really a bug, but why "Gears Big Buttons" are inverted? I mean the "Gear +" supposed to be on the right and the "Gear -" supposed to be in the left like in the "Gears" tiles as well as in Zwift...

@cagnulein
Copy link
Owner

In Italy we placed in this way but I noticed that in the rest of the world is not :)

@XComelli
Copy link

XComelli commented Jan 7, 2025

@cagnulein at some point, it would be nice having the option to flip it either side. The big buttons are much easier to hit than the little one, but I was getting confused, so I hide them LOL

@cagnulein
Copy link
Owner

cagnulein commented Jan 7, 2025 via email

@cagnulein
Copy link
Owner

@cagnulein at some point, it would be nice having the option to flip it either side. The big buttons are much easier to hit than the little one, but I was getting confused, so I hide them LOL

I did this in the last beta @XComelli

At some point I will merge with this

@XComelli
Copy link

@cagnulein I am running v2.18 (991) is there any newer version?

@cagnulein
Copy link
Owner

@XComelli Not for this branch yet

@XComelli
Copy link

@cagnulein thanks for letting me know!

@Nagusia
Copy link

Nagusia commented Jan 19, 2025

Hi Roberto. Checking in here as you suggested over in Reddit. I am on Android if you have a version with gear changing via wifi implemented.

@cagnulein
Copy link
Owner

@Nagusia Here https://github.com/cagnulein/qdomyos-zwift/actions/runs/12655303921/artifacts/2396912287

Pair qz as wahoo kickr 0000 device only for resistance and your trainer directly as power and cadence

Let me know

@Nagusia
Copy link

Nagusia commented Jan 19, 2025

Pair qz as wahoo kickr 0000 device only for resistance and your trainer directly as power and cadence

Just to confirm. You mean pairing in Zwift? Can I pair my HRM via QZ or better directly?

@cagnulein
Copy link
Owner

cagnulein commented Jan 19, 2025 via email

@Nagusia
Copy link

Nagusia commented Jan 19, 2025

HI. Just did a quick test with the pairing as you instructed and it seems to work very well. Actually I had the impression that the changes were slicker. Then I tried again pairing power and cadence with Kickr 0000 and I can see the problem! The watts on QZ and on Zwift don't correspond - I think you mention this issue above. Ideally everything would go through Kickr 0000 as it would limit the number of BT connections needed but I guess it's not easy to achieve. I will do a longer test in the next couple of days. Thanks.

@cagnulein
Copy link
Owner

cagnulein commented Jan 19, 2025 via email

@Nagusia
Copy link

Nagusia commented Jan 20, 2025

@cagnulein I did a longer ride this morning and although gear changes were slick and made a difference to resistance, I was not getting increased resistance on climbs. It was like I could stay in gear 15 whatever the gradient. I did another short test to produce a debug file where I was going up a 9% hill in gear 15 where I would normally use gear 3. If I changed gear it made a difference to the resistance but as if I was on the flat.

debug-Mon_Jan_20_11_50_38_2025.log

@cagnulein
Copy link
Owner

@Nagusia Got the issue, should be an easy one to fix. I will update you ASAP

@cagnulein
Copy link
Owner

@Nagusia should be fixed! https://github.com/cagnulein/qdomyos-zwift/actions/runs/12870120891
let me know!

Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded.
This version is a 15 minutes trial (you can restart it as many times as you want) and I can unlock it if you want, send me an email to [email protected] mentioning this ticket and that you are on android.
Let me know if you have any questions

@Nagusia
Copy link

Nagusia commented Jan 21, 2025

@cagnulein This seems to be fixed as far as resistance/gradient is concerned, but when I tried going into a Workout with ERG mode the resistance wasn't applied so I couldn't hit the watts target. I tried both hitting the erg tile in QZ and without (just ERG in Zwift) it but it made no difference. Here is the debug file.

debug-Tue_Jan_21_17_28_43_2025.log

@cagnulein
Copy link
Owner

cagnulein commented Jan 21, 2025 via email

@Nagusia
Copy link

Nagusia commented Jan 21, 2025

@cagnulein not sure because I was jumping sections but the workout was programed to go 4 min @ 95w, 4 min @ 125w, 4 min @ 155w and then 4 min @ 185w but as you say, the trainer was happy with 173w (i.e. letter in white, not in red).

@cagnulein
Copy link
Owner

cagnulein commented Jan 21, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants