mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
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:
@@ -647,6 +647,8 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
|
||||
rideFile->appendPoint(seconds, cad, hr, km,
|
||||
kph, nm, watts, alt, lon, lat, 0.0,
|
||||
0.0, temp, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0, 0.0, interval);
|
||||
else if (csvType == moxy) {
|
||||
|
||||
@@ -656,11 +658,17 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
|
||||
kph, nm, watts, alt, lon, lat,
|
||||
headwind, slope, temp, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
smo2, thb, 0.0, 0.0, 0.0, interval);
|
||||
rideFile->appendPoint((minutes * 60.0)+1, cad, hr, km, // dupe it so we have 1s recording easier to merge
|
||||
kph, nm, watts, alt, lon, lat,
|
||||
headwind, slope, temp, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
smo2, thb, 0.0, 0.0, 0.0, interval);
|
||||
|
||||
} else {
|
||||
@@ -668,6 +676,9 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
|
||||
kph, nm, watts, alt, lon, lat,
|
||||
headwind, slope, temp, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
0.0, 0.0, 0.0, 0.0,
|
||||
smo2, thb, 0.0, 0.0, 0.0, interval);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user