Add Endurance Index to CP overlay

.. for power and w/kg
This commit is contained in:
Mark Liversedge
2014-06-17 21:40:26 +01:00
parent 74ad5e1ec7
commit e69176c5ae
4 changed files with 25 additions and 1 deletions

View File

@@ -411,6 +411,11 @@ CPPlot::plotModel()
cpw->pmaxRank->setText(tr("n/a"));
}
// Endurance Index
if (pdModel->hasWPrime() && pdModel->WPrime() && pdModel->hasCP() && pdModel->CP()) {
cpw->eiValue->setText(QString("%1").arg(pdModel->WPrime() / pdModel->CP(), 0, 'f', 0));
}
} else {
//WPrime
@@ -450,6 +455,12 @@ CPPlot::plotModel()
cpw->pmaxValue->setText(tr("n/a"));
cpw->pmaxRank->setText(tr("n/a"));
}
// Endurance Index
if (pdModel->hasWPrime() && pdModel->WPrime() && pdModel->hasCP() && pdModel->CP()) {
cpw->eiValue->setText(QString("%1").arg(pdModel->WPrime() / pdModel->CP(), 0, 'f', 0));
}
}
}
}