mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
parent
c0928097cc
commit
17b3602fda
@ -151,7 +151,7 @@ Track::Track(const TrackData &data) : _data(data), _pause(0)
|
|||||||
qreal pauseSpeed;
|
qreal pauseSpeed;
|
||||||
|
|
||||||
if (_automaticPause) {
|
if (_automaticPause) {
|
||||||
pauseSpeed = (avg(seg.speed) > 2.8) ? 0.55 : 0.15;
|
pauseSpeed = (avg(seg.speed) > 2.8) ? 0.40 : 0.15;
|
||||||
pauseInterval = 10;
|
pauseInterval = 10;
|
||||||
} else {
|
} else {
|
||||||
pauseSpeed = _pauseSpeed;
|
pauseSpeed = _pauseSpeed;
|
||||||
@ -163,7 +163,7 @@ Track::Track(const TrackData &data) : _data(data), _pause(0)
|
|||||||
if (seg.speed.at(j) > pauseSpeed)
|
if (seg.speed.at(j) > pauseSpeed)
|
||||||
ss = -1;
|
ss = -1;
|
||||||
else if (ss < 0)
|
else if (ss < 0)
|
||||||
ss = j;
|
ss = j-1;
|
||||||
|
|
||||||
if (ss >= 0 && seg.time.at(j) > seg.time.at(ss) + pauseInterval) {
|
if (ss >= 0 && seg.time.at(j) > seg.time.at(ss) + pauseInterval) {
|
||||||
int l = qMax(ss, la);
|
int l = qMax(ss, la);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user