weglide / bugtracker

WeGlide platform bug tracker.
https://www.weglide.org
11 stars 1 forks source link

Not right calculation distance of declared task #270

Open dmitryborovyk opened 5 months ago

dmitryborovyk commented 5 months ago

19.01.2024 I flew 1252 km 3 turnpoints declared task, but weglide calculated 1020 km in total for the task (but correctly shows the length of the legs 320 + 450 +259 + 222 = 1020 !?) . https://www.weglide.org/flight/359949

dmitryborovyk commented 5 months ago

shoot

samuel-git commented 5 months ago

Hi @dmitryborovyk, This is due how the turnpoint type keyhole is handled (circle center vs. edge). Thank you for reporting this inconsistency and congratulations for this awesome flight!

dmitryborovyk commented 5 months ago

Hi Samuel,

Just for understanding - will this error be fixed or will the length of the task remain 1020 km?

Regards, Dmitry 29 янв. 2024 г., 13:18 +0100, Samuel @.***>, писал:

Hi @dmitryborovyk, This is due how the turnpoint type keyhole is handled (circle center vs. edge). Thank you for reporting this inconsistency and congratulations for this awesome flight! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

moldhouse commented 2 months ago

What happens is that the task get's scored as a 1020 triangle where you start on the leg. This is not a bug. A triangle get's scored with a bonus of 1.4, where as a 3 TP task does not have a bonus. So the 1000 km triangle beats the 1250 3 TP. I don't see any obvious way to solve this. @samuel-git, I think there is a few options we have in the frontend:

  1. Display more clear that the task is scored as triangle (not just in the task but also in the score object) next to Declared. The information can be taken from the task itself.
  2. When the user clicks the declareation contest, we should display the task in the same way it is displayed when clicking on the task from the free contest (there is a difference)