mt-from-sf-to-gh / features

0 stars 0 forks source link

Average Speed (from start) line graph #196

Closed mt-from-sf-to-gh closed 2 years ago

mt-from-sf-to-gh commented 3 years ago

Hello,

my request is about having an average speed graph over the standard speed graph. This graph would be a line graph with the value of the average speed from start for each data point. This would give the usefull information of the average speed evolution during the activity. Thank you.

Reported by: GurVJ

Original Ticket: mytourbook/feature-requests/205

mt-from-sf-to-gh commented 3 years ago

I have this graph in my mind since 2004, when I saw it the first time but it's not yet implemented

Original comment by: wolfgang-ch

mt-from-sf-to-gh commented 3 years ago

Duplicate of this feature request ?

Original comment by: FJBDev

mt-from-sf-to-gh commented 3 years ago

Not really (except my comment), the feature request you mentionned is about having an histogram representing the average speed for each km (like if there was a tour marker for each km). My request is about having a line graph with average speed from the start of the activity e.g. at km5 what was my average speed from the beginning of the activity ? After running 30 minutes, what was my average speed at this time ?

Original comment by: GurVJ

mt-from-sf-to-gh commented 3 years ago

In fact it is just having a graph representing Traveled Distance over Recorded Time.

Original comment by: GurVJ

mt-from-sf-to-gh commented 3 years ago

The graph will look similar like this

This graph is created with this code change https://github.com/wolfgang-ch/mytourbook/commit/d91f2f5969fd2fdaca8a336fcc389a0d8988e04d

I think that the average speed should ignore the paused times or it should be optional, this will make the code not as simple as it is now.

Original comment by: wolfgang-ch

mt-from-sf-to-gh commented 3 years ago

Yes that's it ! You are right, paused time should be ignored in the calculation.

Original comment by: GurVJ

mt-from-sf-to-gh commented 3 years ago

Ok, thanks for the additional details, it is indeed different

Original comment by: FJBDev

mt-from-sf-to-gh commented 3 years ago

This feature is now implemented and available in the next version.

From the 3 line of code for the POC (proove of concept) there are now many othere lines of code which were modified/added, the most is done in this commit https://github.com/wolfgang-ch/mytourbook/commit/e205271f09c5a654c949b63f0dfc25c6a0ce8762

Original comment by: wolfgang-ch

mt-from-sf-to-gh commented 3 years ago

Original comment by: wolfgang-ch

mt-from-sf-to-gh commented 3 years ago

Thank you Wolfgang !!

Original comment by: GurVJ