mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Plot CP model for derived power series
.. not sure of the validity of applying the model to derived data series like xPower and aPower but it may provide some insight.
This commit is contained in:
@@ -367,7 +367,12 @@ CpintPlot::plot_CP_curve(CpintPlot *thisPlot, // the plot we're currently di
|
||||
}
|
||||
#endif
|
||||
|
||||
if (series == RideFile::watts || series == RideFile::aPower || series == RideFile::wattsKg) curveTitle.setLabel(QwtText(curve_title, QwtText::PlainText));
|
||||
if (series == RideFile::watts ||
|
||||
series == RideFile::aPower ||
|
||||
series == RideFile::xPower ||
|
||||
series == RideFile::NP ||
|
||||
series == RideFile::wattsKg)
|
||||
curveTitle.setLabel(QwtText(curve_title, QwtText::PlainText));
|
||||
|
||||
if (series == RideFile::wattsKg)
|
||||
curveTitle.setYValue(0.6);
|
||||
@@ -579,7 +584,9 @@ CpintPlot::calculate(RideItem *rideItem)
|
||||
//
|
||||
// CP curve only relevant for Energy or Watts (?)
|
||||
//
|
||||
if (series == RideFile::aPower || series == RideFile::watts || series == RideFile::wattsKg || series == RideFile::none) {
|
||||
if (series == RideFile::aPower || series == RideFile::NP || series == RideFile::xPower ||
|
||||
series == RideFile::watts || series == RideFile::wattsKg || series == RideFile::none) {
|
||||
|
||||
if (!CPCurve) plot_CP_curve(this, cp, tau, t0);
|
||||
else {
|
||||
// make sure color reflects latest config
|
||||
|
||||
Reference in New Issue
Block a user