cagnulein / qdomyos-zwift

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

[BUG] Follow Peloton Resistance forcing bike to 21 resistance every second #684

Closed hoveeman closed 2 years ago

hoveeman commented 2 years ago

Describe the bug After connecting QZ to my Echelon Ex-5 bike and starting a peloton class, I clicked Yes to follow resistance and QZ set the bike to 21 (echelon level) resistance. I would adjust the resistance with the knob on the bike, and it would go back to 21. I tried changing it again, and it would go back to 21. It appeared to be forcing the resistance to 21 every second on the bike. I disabled the follow resistance for the ride by pressing the magnet in the top right. Please note that the Target Peloton Resistance tile was correct and followed correctly for the whole ride. It was Target Resistance tile that always stayed at 21.

To Reproduce Steps to reproduce the behavior: Open QZ and connect to your bike Start a peloton class and click yes to follow Notice that resistance goes directly to 21 (Echelon Resistance Level)

Expected behavior Expected behavior is for Target resistance to follow correctly with the class and not force the bike to 21 resistance every second.

Screenshots In this screenshot, you can see Target Resistance says 21, but Target Peloton Resistance is 30, which was correct for the class at that time. I manually adjusted my bikes resistance to Peloton Resistance 30 and Echelon Resistance 12. The Target Resistance should have been 12, not 21. IMG_0418

Smartphone (please complete the following information):

Append a debug log debug-Thu_Feb_17_06_10_24_2022.log

cagnulein commented 2 years ago

argh @hoveeman i guess it's releated to the peloton cadence sensor setting thing. Please double confirm me this turning it on again. I will try to fix this tomorrow. Thanks

hoveeman commented 2 years ago

@cagnulein, You were correct. I enabled the peloton cadence sensor and then the follow resistance was correct. I pushed plus a bunch to move up the peloton offset to watch the values change, and it was all correct.

debug-Thu_Feb_17_10_27_27_2022.log

cagnulein commented 2 years ago

ok so it should be simple to fix. Sorry for the trouble and thanks again for your feedback!

hoveeman commented 2 years ago

@cagnulein never a problem! I'm always excited to help in anyway! Thank you for all you do!

cagnulein commented 2 years ago

@hoveeman i'm building the fix. I hope it will work ;)

hoveeman commented 2 years ago

@cagnulein You fixed it! version 2.10.26 worked correctly following resistance with peloton cadence sensor turned off. I also switched back and forth between the treadmill and bike to make sure heart rate still worked correctly in reference to #636, and everything worked perfectly. Marking as closed!

cagnulein commented 2 years ago

@hoveeman yeah! thanks!