Berg0162 / simcline

Simulation of Changing Road Inclination for Indoor Cycling
GNU General Public License v3.0
29 stars 7 forks source link

Zwift Trainer Dificulty #10

Closed acwalter closed 11 hours ago

acwalter commented 1 week ago

Zwift trainer difficulty, by default set to 50%, causes Zwift to send the grade *.5 so the simcline only receives 1/2 the actual grade. Do others experience this? My quick fix is to set the GradeChangeFactor to 200.

If this is they way Zwift works, I though I would use the .aia file in the MIT app builder and update the incline slider to allow values from 0-200, maybe even 400 if someone were to use Zwift at 25% trainer dificulty, instead of 0-100. The only trouble I am having is getting the apk to run on my phone. If I import a project and use the latest 2.5.1.aia file, and then generate an apk without changing anything I get an error when connecting to the simcline. Anyone know if there is something additional I need to do other than import the .aia file?

Berg0162 commented 1 week ago

Dear Walter,

Zwift trainer difficulty, by default set to 50%, causes Zwift to send the grade *.5 so the simcline omly receives 1/2 the actual grade. Do others experience this? My quick fix is to set the GradeChangeFactor to 200.

The trainer calculates the resistance, among others using the road grade information. That's why Zwift sends modified road grades to the trainer, dependent of the difficulty setting. Just for the record, when you change the Zwift difficulty setting from 50% to 100%, Zwift will send genuine (i.e. unmodified) grades to the trainer (WYSIWYG) and as a consequence the Simcline will lift accordingly! That is really a quick fix! The Zwifters I know, have all the Zwift difficulty setting at 100%, because they want a "road-realistic" experience when training and racing indoors with Zwift.

The GradeChangeFactor functionality was originally designed and implemented to allow the Simcline user to attenuate the actuator movements not the opposite! Feel free to modify the code to whatever conforms your preferences.

and then generate an apk wothout chabging anything I get an error when connecting to the simcline

It would help when you document the error state that you encounter....

Berg0162 commented 11 hours ago

Issue seems to be fixed!