VEHPI-34: GPX export contains trailing 0 mph trackpoints



Issue Information

Issue Type: Bug
 
Priority: Major
Status: Resolved

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: VehManPi (VEHPI)
Resolution: Done (2013-12-27 02:21:55)
Target version: 1.0,
Components: GPS ,

Created: 2013-12-27 02:06:02
Time Spent Working


Description
Because the Track/Segment logic will wait 20 minutes before starting a new segment, exports of a valid segment (i.e. one which contains periods where the vehicle was moving) will always have 20 minutes of entries containing 0mph at the end.

Need to adjust the DBtoGPX logic to account for this.


Issue Links

Toggle State Changes

Activity


btasker changed status from 'Open' to 'In Progress'
Logic adjusted.

We now check for the maximum timestamp within a segment that has a speed > 0. After adding each trackpoint to the XML we check whether the current trackpoints timestamp is greater than the max moving. If it is, we break out of the loop.

Should mean we get a single trailing 0mph per segment.
btasker changed status from 'In Progress' to 'Resolved'
btasker added 'Done' to resolution