BaijnathG / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Need to consider close by points to be not moving #330

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Travel with lots of stop and go.
2. Observe average moving speed == average speed.

I think that my change for close by points didn't do what I wanted.  I we need 
to revert my change an instead increase change the line in 
TripStatisticsBuilder.java

We need to change:
    // Don't do anything if we didn't move since last fix:
    double distance = lastLocation.distanceTo(currentLocation);
    if (distance < MyTracksConstants.MAX_NO_MOVEMENT_DISTANCE &&
        currentSpeed < MyTracksConstants.MAX_NO_MOVEMENT_SPEED) {
      lastLocation = currentLocation;
      return false;
    }
to:
    // Don't do anything if we didn't move since last fix:
    double distance = lastLocation.distanceTo(currentLocation);
    if (distance < Prefs.minRecordingDistance &&
        currentSpeed < MyTracksConstants.MAX_NO_MOVEMENT_SPEED) {
      lastLocation = currentLocation;
      return false;
    }

Original issue reported on code.google.com by sandordo...@google.com on 15 Feb 2011 at 6:11

GoogleCodeExporter commented 9 years ago
Please review the change here:
http://code.google.com/r/sandordornbush-bug2/source/detail?r=b3b6aec4273d43b0664
1b4fed0ad02a905980525

Original comment by sandordo...@google.com on 17 Feb 2011 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by sandordo...@google.com on 18 Feb 2011 at 4:17