mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
temporary patch to estimate dp from bs
I want to add Daniels Points to the ManualRideFile format, but until then, simply estimate them from the BikeScore based on a weighting I took from some of my long rides. It's mostly on long steady rides that I estimate BikeScore as part of a ManualRideFile, so hopefully this isn't too terrible as a temporary patch. A better fix is in the works.
This commit is contained in:
@@ -48,6 +48,14 @@ class DanielsPoints : public RideMetric {
|
||||
if (!zones)
|
||||
return;
|
||||
|
||||
if (ride->deviceType() == QString("Manual CSV")) {
|
||||
// Manual entry: use BS from dataPoints with a scaling factor
|
||||
// that works about right for long, steady rides.
|
||||
double scaling_factor = 11.0 / 58.0;
|
||||
score = ride->dataPoints().first()->bs * scaling_factor;
|
||||
return;
|
||||
}
|
||||
|
||||
static const double EPSILON = 0.1;
|
||||
static const double NEGLIGIBLE = 0.1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user