mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
committed by
Mark Liversedge
parent
9f25fdc6f8
commit
8d3d89d44d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user