Skip to content
This repository was archived by the owner on Jul 15, 2024. It is now read-only.
This repository was archived by the owner on Jul 15, 2024. It is now read-only.

Make downloaded CUP file more robust #236

@mathias-muench

Description

@mathias-muench

Describe the Feature

In CUP file downloaded from WeGlide task, repeat first turnpoint in "takeoff" and last turnpoint in "landing".

Right now, takeoff and landing are empty (""). While SeeYou itself is quite happy with that, it leads to strange behavior in third-party applications. XCSoar skips the last turnpoint (see WeGlide task cup file not compatible with XCSoar · Issue #91 · weglide/bugtracker), Java TopTask repeats random other turnpoints.

According to SeeYou CUP file format description - SeeYou_CUP_file_format.pdf (2022), "takeoff" and "landing" are still part of the file format, although different applications obviously handle them differently. Repeating the first turnpoint in "takeoff" and last turnpoint in "landing" seems to make all systems happy that I am aware of.

Regardless of a discussion about "officially correct behavior", it would make things more robust, even for legacy systems.

Example

Current task line:

"744 km · Dreieck · DMSt · Unterwoessen Kirche","","Unterwoessen Kirche","Mariazell Tennisplatz","Flossenbuerg Burgruine","Unterwoessen Kirche",""

Proposed task line:

"744 km · Dreieck · DMSt · Unterwoessen Kirche","Unterwoessen Kirche","Unterwoessen Kirche","Mariazell Tennisplatz","Flossenbuerg Burgruine","Unterwoessen Kirche","Unterwoessen Kirche"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions