FAI-CIVL / FAI-Airscore

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

Improve task import from .XCTSK files #285

Open joergewald opened 3 years ago

joergewald commented 3 years ago
  1. Do not require an area, all the information is contained in the XCTSK file
  2. Set the task times according to the XCTSK file
biuti commented 3 years ago
  1. It could make sense to let create a task without an area, and hide waypoint section, leaving only XCTSK file option.
  2. I think XCTrack uses local time, we could use our offset_time, I would like to avoid any source of confusion.
kuaka commented 3 years ago

importing of times was certainly a feature of xctrack task import. has it been turned off?

biuti commented 3 years ago

Just tried it using Joerg file, seems to me it works but times were 1 hour earlier than the ones Joerg told me in the email. So either they are wrong in the file, in the email, or it's a different offset.

joergewald commented 3 years ago

The XCTSK file from May 22nd that I sent Antonio only defines the start (10:00Z) and the task deadline (21:00Z). These two values do not make it into the task's Timing settings.

FireShot Capture 067 - Task Settings - localhost

joergewald commented 3 years ago

This is the file (careful, it's missing the ESS!)

{"version":1,"taskType":"CLASSIC","turnpoints":[{"radius":2000,"waypoint":{"lon":7.81992,"lat":46.70069,"altSmoothed":1290,"name":"T03129","description":""},"type":"TAKEOFF"},{"radius":2000,"waypoint":{"lon":7.81992,"lat":46.70069,"altSmoothed":1290,"name":"T03129","description":""},"type":"SSS"},{"radius":7000,"waypoint":{"lon":7.67392,"lat":46.68458,"altSmoothed":640,"name":"L03064","description":""}},{"radius":2000,"waypoint":{"lon":7.90956,"lat":46.72522,"altSmoothed":0,"name":"B93000","description":""}},{"radius":2000,"waypoint":{"lon":7.71608,"lat":46.74835,"altSmoothed":1390,"name":"B48139","description":""}},{"radius":10000,"waypoint":{"lon":7.86998,"lat":46.84682,"altSmoothed":1420,"name":"B52142","description":""}},{"radius":6000,"waypoint":{"lon":7.67392,"lat":46.68458,"altSmoothed":640,"name":"L03064","description":""}},{"radius":3000,"waypoint":{"lon":7.90956,"lat":46.72522,"altSmoothed":0,"name":"B93000","description":""}},{"radius":1000,"waypoint":{"lon":7.81992,"lat":46.70069,"altSmoothed":1290,"name":"T03129","description":""}},{"radius":500,"waypoint":{"lon":7.85171,"lat":46.6973,"altSmoothed":1322,"name":"B01132","description":""}},{"radius":100,"waypoint":{"lon":7.85889,"lat":46.68539,"altSmoothed":570,"name":"L02057","description":""},"type":"ESS"}],"sss":{"type":"RACE","direction":"EXIT","timeGates":["10:00:00Z"]},"goal":{"type":"LINE","deadline":"21:00:00Z"},"earthModel":"WGS84"}