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

[REQ] PID Implementation #588

Open CiccioFritz79 opened 2 years ago

CiccioFritz79 commented 2 years ago

Hi Roberto,

if possible, i would ask an implementation for PID section. Here my idea:

1) Cooldwn Timeout: When a cardio zone is exceeded (as set in PID), QZ lowers your speed until you are back in the correct cardio zone. The parameter should manage how long to stay at a constant speed before starting to raise it again (Numeric Parameter).

2) SpeedUp Timeout: at the end of the "Cooldown Timeout" phase, increase speed every "X" seconds (Numeric Parameter)

3) SpeedUp Velocity: at the end of every "SpeedUp Timeout", increase velocity of "X" km/h (Numeric Parameter, value of 0,1 km/h)

4) Check Incline: at the end of "SpeedUp Timeout", check inclination respect the previous "SpeedUp Timeout". There are two possibilities (ON/OFF Switch): a) If the inclination is = or < of the previous "SpeedUp Timeout", execute the "SpeedUp Velocity" set in point (3) b) If the inclination is > of the previous "SpeedUp Timeout", do nothing, but refer to point (5)

5) Check Timeout: If point (4) is active, check point (4) every "X" seconds until condition (4a) is verified. (Numeric Parameter, minimum value 5 seconds).

Could you implement this? Thanks in Advance Alberto

stale[bot] commented 2 years 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.