Skip to content

Commit

Permalink
Show model parameters on CPPlot for aPower and aPowerKg
Browse files Browse the repository at this point in the history
Curve fitting was already enabled but parameters were not displayed
  • Loading branch information
amtriathlon committed Jul 6, 2018
1 parent 28e5ef6 commit e0a4330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Charts/CPPlot.cpp
Expand Up @@ -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"));
Expand Down Expand Up @@ -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"));
Expand Down
2 changes: 1 addition & 1 deletion src/Charts/CriticalPowerWindow.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e0a4330

Please sign in to comment.