Open drmason789 opened 3 months ago
@cagnulein is this something you want to continue with?
@drmason789 Actually I was looking to finalize the dynamic erg table for the bike where I don't have a static power table first. Do you agree?
Of course the dynamic power table will be applied only to the bike with automatic resistance and without the static power table.
@drmason789 i mean this one https://github.com/cagnulein/qdomyos-zwift/pull/2175 if you want to review my code go on! (I didn't test myself yet)
Actually I was looking to finalize the dynamic erg table for the bike where I don't have a static power table first. Do you agree?
Yes.
@drmason789 i mean this one https://github.com/cagnulein/qdomyos-zwift/pull/2175 if you want to review my code go on! (I didn't test myself yet)
Definately. I took a quick look and will have some comments about this later.
@cagnulein What is the intended difference between the functions wattsFromResistance and powerFromResistanceRequest?
@cagnulein Remember the resistance_t change? Would you be agreeable to me adding cadence_t, heartRate_t, power_t, pelotonResistance_t, inclination_t alongside it and propagating throughout the codebase, in a different PR?
@cagnulein What is the intended difference between the functions wattsFromResistance and powerFromResistanceRequest?
@drmason789 it was intented to use for renpho bikes but at the end powerFromResistanceRequest is a dead code
@cagnulein Remember the resistance_t change? Would you be agreeable to me adding cadence_t, heartRate_t, power_t, pelotonResistance_t, inclination_t alongside it and propagating throughout the codebase, in a different PR?
@drmason789 yes sure!
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.
@drmason789 i added erg tables for all the bikes with the new ergtable module. Maybe it could impact also this
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.
To finish this PR, some thought will be needed about what it should test.
I have defined the erginterface abstract class, which acts as an interface for the powerFromResistance and resistanceFromPower functionality offered by the bike class. Currently the bikeergfunctions class implements this for bikes, by setting the bike's current cadence, using the corresponding function to get the resistance or power, then restoring the bike's original cadence.
The interface supports optionally defined (min, max) x (cadence, resistance) representing the domain the bike knows about so the tests adapt to the boundaries provided, where provided.
What is tested?
What is not tested?