FitRideFile: Add new FIT fields

Especially for Vectors new metrics
	- Left and Righ Platform Center Offset - eg: -8mm and -11mm
	- Left and Right Top dead Center  - eg: 10° and 11°
	- Left and Right Bottom dead Center  - eg: 203° and 210°
	- Left and Right Peak Power Phase Start - eg: 83° and 76°
	- Left and Right Peak Power Phase End - eg: 115° and 125°
This commit is contained in:
Damien
2015-01-01 11:27:59 +01:00
parent ac5c905b10
commit b24ee97278
40 changed files with 1375 additions and 91 deletions

View File

@@ -141,6 +141,38 @@ RideFileTableModel::setHeadings(RideFile::SeriesType series)
headings_ << tr("Right PS");
headingsType << RideFile::rps;
}
if (series == RideFile::lpco || ride->areDataPresent()->lpco) {
headings_ << tr("Left Platform Center Offset");
headingsType << RideFile::lpco;
}
if (series == RideFile::rpco || ride->areDataPresent()->rpco) {
headings_ << tr("Right Platform Center Offset");
headingsType << RideFile::rpco;
}
if (series == RideFile::ltdc || ride->areDataPresent()->ltdc) {
headings_ << tr("Left Top Dead Center");
headingsType << RideFile::ltdc;
}
if (series == RideFile::rtdc || ride->areDataPresent()->rtdc) {
headings_ << tr("Right Top Dead Center");
headingsType << RideFile::rtdc;
}
if (series == RideFile::lbdc || ride->areDataPresent()->lbdc) {
headings_ << tr("Left Bottom Dead Center");
headingsType << RideFile::lbdc;
}
if (series == RideFile::rbdc || ride->areDataPresent()->rbdc) {
headings_ << tr("Right Bottom Dead Center");
headingsType << RideFile::rbdc;
}
if (series == RideFile::ltppp || ride->areDataPresent()->ltppp) {
headings_ << tr("Left Peak Power Phase Start");
headingsType << RideFile::ltppp;
}
if (series == RideFile::rtppp || ride->areDataPresent()->rtppp) {
headings_ << tr("Right Peak Power Phase Start");
headingsType << RideFile::rtppp;
}
if (series == RideFile::smo2 || ride->areDataPresent()->smo2) {
headings_ << tr("SmO2");
headingsType << RideFile::smo2;