Course_Generator icon indicating copy to clipboard operation
Course_Generator copied to clipboard

Calculate a course time based on a chosen total time finish

Open FJBDev opened this issue 6 years ago • 6 comments

For a given course with given parameters, calculate the time for each point based on a total finished time specified by the user. For example : If the user wants to finish in 30h, estimate the time for each point based on that total finish time

FJBDev avatar Jul 04 '18 02:07 FJBDev

Done in V4.4

patrovite avatar Nov 02 '19 16:11 patrovite

@patrovite I didn't find in the doc or in CG how to use this new feature, is there a button to enter the desired finished time ?

FJBDev avatar Nov 02 '19 17:11 FJBDev

Page 49 of the pdf manual. Menu "Tools>Search 'Speed/Slope' from the the final time"

patrovite avatar Nov 02 '19 20:11 patrovite

Ok, I found it and tried it but it didn't work as I expected as the function that was implemented looks for a curve that would match this time which means if the curve is not found, nothing happens. That's not actually what I meant when I created this feature request. What is meant is this :

  • The user selects a track with or without a finish time
  • The user specifies the desired finish time.
  • From this given finish time, Course Generator computes the time from the start to the finish so that the finish time equals the time entered by the user.

FJBDev avatar Nov 03 '19 00:11 FJBDev

Currently it's not possible to do what you want. CG work with 'speed/slope' curves. For V4.4.0 I added curves to have curves from 3.6km/h to 18km/h with a step of 0.1km/h. Other parameters (difficulty, health coeff, time in aid station...) are constants.

To use this feature you need to first set the constant parameters and then run the algorithm.

The current algorithm select the best curve but not the 'exact' curve. Maybe in the future I can generate a specific curve (for example a curve 9.156km/h) that allow to exactly reach the finish time.

patrovite avatar Nov 03 '19 09:11 patrovite

OK, thanks for the explanation

FJBDev avatar Nov 03 '19 16:11 FJBDev