### Create Racetrack Pattern for Polygon

The Racetrack feature calculates optimal waypoints for a plane when the designated button is pressed. These waypoints are determined based on the selected sensor, polygon-layer representing the area of interest, and flight altitude.

Note that:

- the selected polygon layer must contain only one feature.
- the projection of the polygon MUST be in the same projection as the map.

#### Key Features of Waypoints

- FLYOVER Tag: Each waypoint is assigned a FLYOVER tag by default.
- Unique IDs: Waypoints are assigned unique IDs based on the selected algorithm, indicating the order in which they need to be flown over.

The algorithms are designed to optimize the flight path when flying over a grid. You can choose between two algorithms:

#### Meander

- The plane flies over `k` waypoints repeatedly until it reaches the end of the grid.
- It then moves back by 1 waypoint.
- The plane continues flying `k` waypoints in the opposite direction, repeating the process until the grid is fully covered.

#### Racetrack

- The plane flies over the first `k` waypoints (determined by the maximum turning distance).
- It then flies back over `k-1` waypoints, reversing direction.
- This process repeats until the entire area is covered.

If you prefer not to use any of the algorithms, simply set a very small max-turn-distance. The generated waypoints will then traverse the entire polygon in sequential order.

#### Suggested Naming for Output Files

The generated output files include the maximum turning distance in their filenames to make them easily identifiable.