Making Track and Waypoint use the TripStatisticsData class.

This grealy simplifies those classes since the fields are the same.
There's certainly more cleanup to do on top of this, but I thought this
was already more than enough for a single change.

The only *functional* change expected from this is that the average
speed is now calculated over the time until the last known position,
which IMHO makes sense since the distance used in that calculation only
includes up to that position. The visible effect is that having no GPS
signal doesn't make the speed decrease.

This was imported from perforce CL 15953263.
This commit is contained in:
Rodrigo Damazio
2010-06-04 14:59:09 -03:00
parent 2c1dff6ac8
commit 88b2b85f2a
26 changed files with 1207 additions and 1396 deletions
File diff suppressed because it is too large Load Diff