Skip to content

Commit

Permalink
Revert "added TSS to power_metrics"
Browse files Browse the repository at this point in the history
This reverts commit e001146.
  • Loading branch information
adriangibbons committed Sep 27, 2015
1 parent e001146 commit b4f8174
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/phpFITFileAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -1749,9 +1749,6 @@ public function powerMetrics($functional_threshold_power)
$power_metrics['Intensity Factor'] = $power_metrics['Normalised Power'] / $functional_threshold_power;
$power_metrics['Training Stress Score'] = (count($this->data_mesgs['record']['power']) * $power_metrics['Normalised Power'] * $power_metrics['Intensity Factor']) / ($functional_threshold_power * 36);

// TSS is IF^2*100*Ride Duration in hours.
$power_metrics['Training Stress Score'] = round(($power_metrics['Intensity Factor'] * $power_metrics['Intensity Factor']) * 100 * (count($this->data_mesgs['record']['power']) / 3600));

// Round the values to make them something sensible.
$power_metrics['Average Power'] = (int)round($power_metrics['Average Power']);
$power_metrics['Kilojoules'] = (int)round($power_metrics['Kilojoules']);
Expand Down

0 comments on commit b4f8174

Please sign in to comment.