Add temperature to AllPlot

Fixes #536.
This commit is contained in:
Damien Grauser
2011-12-07 21:55:35 +00:00
committed by Mark Liversedge
parent 9f25fdc6f8
commit 8d3d89d44d
24 changed files with 143 additions and 41 deletions

View File

@@ -171,7 +171,7 @@ bool
if(rideFile->dataPoints().empty()) {
// first point
rideFile->appendPoint(secs, 0, 0, distance, speed, 0, 0, alt, lon, lat, 0, 0.0, 0.0, 0);
rideFile->appendPoint(secs, 0, 0, distance, speed, 0, 0, alt, lon, lat, 0, 0.0, RideFile::noTemp, 0);
}
else {
// assumption that the change in ride is linear... :)
@@ -186,7 +186,7 @@ bool
// Smart Recording High Water Mark.
if ((isGarminSmartRecording.toInt() == 0) || (deltaSecs == 1) || (deltaSecs >= GarminHWM.toInt())) {
// no smart recording, or delta exceeds HW treshold, just insert the data
rideFile->appendPoint(secs, 0, 0, distance, speed, 0,0, alt, lon, lat, 0, 0.0, 0.0, 0);
rideFile->appendPoint(secs, 0, 0, distance, speed, 0,0, alt, lon, lat, 0, 0.0, RideFile::noTemp, 0);
}
else {
// smart recording is on and delta is less than GarminHWM seconds.
@@ -208,9 +208,9 @@ bool
prevPoint->alt + (deltaAlt * weight),
lon, // lon
lat, // lat
0,
0.0,
0.0,
0,
0.0,
RideFile::noTemp,
0);
}
prevPoint = rideFile->dataPoints().back();