Permalink
Browse files

Show model parameters on CPPlot for aPower and aPowerKg

Curve fitting was already enabled but parameters were not displayed
  • Loading branch information...
amtriathlon committed Jul 6, 2018
1 parent 28e5ef6 commit e0a4330d30daca3583aa866e96dfe4ff051c3d59
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Charts/CPPlot.cpp
  2. +1 −1 src/Charts/CriticalPowerWindow.cpp
View
@@ -563,7 +563,7 @@ CPPlot::plotModel()
// update the helper widget -- either as watts, w/kg or kph
if (rideSeries == RideFile::watts) {
if (rideSeries == RideFile::watts || rideSeries == RideFile::aPower) {
// Reset Rank
cpw->titleRank->setText(tr("Rank"));
@@ -619,7 +619,7 @@ CPPlot::plotModel()
cpw->eiValue->setText(QString("%1").arg(pdModel->WPrime() / pdModel->CP(), 0, 'f', 0));
}
} else if (rideSeries == RideFile::wattsKg) {
} else if (rideSeries == RideFile::wattsKg || rideSeries == RideFile::aPowerKg) {
// Reset Rank
cpw->titleRank->setText(tr("Rank"));
@@ -1559,7 +1559,7 @@ CriticalPowerWindow::addSeries()
void
CriticalPowerWindow::updateOptions(CriticalSeriesType series)
{
if ((series == watts || series == wattsKg || series == kph) && modelCombo->currentIndex() >= 1) {
if ((series == watts || series == wattsKg || series == kph || series == aPower || series == aPowerKg) && modelCombo->currentIndex() >= 1) {
helperWidget()->show();
} else {
helperWidget()->hide();

0 comments on commit e0a4330

Please sign in to comment.