FAI-CIVL / FAI-Airscore

AirScore - online paragliding / hanggliding GAP-based scoring software.
https://airscore.cc/
GNU General Public License v3.0
13 stars 17 forks source link

Is optimised path from each fix to ESS used for leading area? #187

Closed philderbeast closed 3 years ago

philderbeast commented 3 years ago

Is the leading area calculated using an optimised path from each fix to ESS? It looks like it might be using distance to the next cylinder added to the optimal route for the task from that cylinder to ESS, the faster simplified distance calculation.

https://github.com/FAI-CIVL/FAI-Airscore/blob/a279e3e29077590ec5d4f9501b601b6e62912644/airscore/core/formulas/libs/leadcoeff.py#L27

https://github.com/FAI-CIVL/FAI-Airscore/blob/a279e3e29077590ec5d4f9501b601b6e62912644/airscore/core/flightcheck/flightcheck.py#L236-L245

biuti commented 3 years ago

In one case distance_flown is the simplified function, in the other is the pilot attribute, which during speedsecrion is calculated using the precise opt distance from fix to ess. [edit] I elaborate a bit more: leading factor is calculated only when pilot is in the speed section, so result.distance_flown used in best_dist_to_ess is always calculated using get_shortest_path.