fixed the gps parser to take mapmyride routes

Fixes #533.
This commit is contained in:
Greg Lonnon
2011-12-07 22:19:34 +00:00
committed by Mark Liversedge
parent 55cb396196
commit 082da0127c
2 changed files with 11 additions and 4 deletions

View File

@@ -184,11 +184,16 @@ bool
double deltaLat = lat - prevPoint->lat;
// 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
if ((isGarminSmartRecording.toInt() == 0) ||
(deltaSecs == 1) ||
(deltaSecs >= GarminHWM.toInt()) ||
(secs == 0)) {
// no smart recording, or delta exceeds HW treshold, or no time elements; just insert the data
rideFile->appendPoint(secs, 0, 0, distance, speed, 0,0, alt, lon, lat, 0, 0.0, RideFile::noTemp, 0);
}
else {
} else {
// smart recording is on and delta is less than GarminHWM seconds.
for(int i = 1; i <= deltaSecs; i++) {
double weight = i/ deltaSecs;

File diff suppressed because one or more lines are too long