########################################################################################## VEHPI-34: GPX export contains trailing 0 mph trackpoints ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Resolved Resolution: Done (2013-12-27 02:21:55) Project: VehManPi (VEHPI) Reported By: btasker Assigned To: btasker Components: - GPS Targeted for fix in version: - 1.0 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue 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 Relations ================ - relates to VEHPI-7: Implement GPS Support - Caused by VEHPI-23: Implement Journey/Track/Segment logic ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2013-12-27 02:20:01 ----------------------------------------------------------------------------------------- btasker changed status from 'Open' to 'In Progress' ----------------------------------------------------------------------------------------- 2013-12-27 02:21:45 btasker ----------------------------------------------------------------------------------------- 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. ----------------------------------------------------------------------------------------- 2013-12-27 02:21:55 ----------------------------------------------------------------------------------------- btasker changed status from 'In Progress' to 'Resolved' ----------------------------------------------------------------------------------------- 2013-12-27 02:21:55 ----------------------------------------------------------------------------------------- btasker added 'Done' to resolution