Assign the same TSS score to FreeRide as Zwift does

This commit is contained in:
Rene Saarsoo 2020-12-25 20:25:13 +02:00
parent 9a2e3dafc9
commit 6200dc75c1
3 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,6 @@ console.log(stats(workout));
- Unsupported params: message duration & y-position
- More restricted syntax for text (with quotes)
- Concatenate similar intervals
- Sync TSS prediction of free-ride with Zwift (64 TSS for 1h freeride)
- Distinguish between terrain-sensitive and insensitive free-ride.
- Syntax for comments placed relative to previous ones, e.g. `@ +00:10`
- Detect overlaps of comments.

View File

@ -49,15 +49,16 @@ export class RangeIntensity implements Intensity {
export class FreeIntensity implements Intensity {
get value() {
return 0;
// To match Zwift, which gives 64 TSS for 1h of freeride.
return 0.8;
}
get start() {
return 0;
return this.value;
}
get end() {
return 0;
return this.value;
}
get zone() {

View File

@ -300,10 +300,10 @@ exports[`Generate stats examples/ftp-test.txt 1`] = `
"
Total duration: 45 minutes
Average intensity: 36%
Normalized intensity: 71%
Average intensity: 72%
Normalized intensity: 81%
TSS: 37
TSS: 49
XP: 336
Zone Distribution: