> For the complete documentation index, see [llms.txt](https://docs.theseus.us/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseus.us/cyclops/autopilot-integration/ardupilot/mission-planner-plugin/flight-plan.md).

# PLAN screen

On the PLAN screen, the **Cyclops mission** panel checks the mission you are planning against the Cyclops map and its map quality. It marks where Cyclops will have trouble and can suggest small waypoint moves. It never writes the mission to the aircraft; you do that as usual.

## Open the panel

Under **PLAN**, right-click the map and choose **Cyclops > Check Mission with Cyclops...**. The panel stays on top of Mission Planner. Closing it hides the Cyclops route colors; reopening it keeps your sign-in and map.

{% stepper %}
{% step %}

### Sign in

Under **Theseus account**, enter the email and password of your Theseus account (the one you use in Vozilla) and choose **Sign in**.

The password is never stored. Mission Planner keeps a sign-in token, encrypted for your Windows user, so you stay signed in after a restart. **Sign out** removes it from this computer.
{% endstep %}

{% step %}

### Choose the map

Under **Map**, choose the map that is installed on the aircraft. The plugin picks it for you when it has seen the aircraft: the map you chose last time, otherwise the map the aircraft last reported. **Refresh maps** reloads the list from the Theseus cloud.

**(no quality data)** after a map name means the map's [feature quality map](https://docs.theseus.us/vozilla-gcs-software/vozilla-app/maps/feature-quality-map.md) has not been generated. Generate it in Vozilla, then choose **Refresh maps**.

The first time you choose a map, the plugin downloads its quality data. It is stored on this computer, so you can plan offline afterwards.
{% endstep %}

{% step %}

### Plan and read the results

Plan the mission as usual. The panel re-checks it within a couple of seconds of every change. See [Reading the results](#reading-the-results).
{% endstep %}

{% step %}

### Fix the problems

Fix each problem by hand, or use [Suggest improvements](#suggest-improvements). Then write the mission to the aircraft as usual.
{% endstep %}
{% endstepper %}

The line under the map list tells you what the check uses:

| Text                                                                                          | Meaning                                                                                                  |
| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Using ..., with map quality (cached on this computer).                                        | Full check.                                                                                              |
| Using ..., with map quality (approximate placement).                                          | Full check. The quality grid is placed approximately on the map, so risk markers may be offset slightly. |
| Using ..., without quality data.                                                              | Only map area and height are checked; featureless stretches cannot be found.                             |
| No map selected: checking against the map area the drone last reported, without quality data. | You are not signed in or have not chosen a map. Only map area and height are checked.                    |

## Reading the results

* **On the map:** the route is green where it is fine, **red** where there is a problem and **amber** for information. A marker at each problem explains it; hover over it to read it.
* **In the panel:** a summary line with the route length, the longest stretch where Cyclops cannot correct its position, and the number of problems, followed by the list of problems.

### How Cyclops corrects its position

Between corrections, Cyclops' position error grows with distance flown. Cyclops corrects its position by matching the camera image to the map. A correction is possible only where all of these hold:

* the aircraft is **inside the Cyclops map**;
* it is at least **50 m above the ground**;
* the ground below has **enough distinctive texture** (roads, buildings, field edges), according to the map quality data;
* at least 500 m have passed since the previous correction.

### Problems and how to fix them

| Message                                                                                                                                                                  | Colour | Fix                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Leg N: ... outside the Cyclops map. Cyclops cannot correct its position there.                                                                                           | Red    | Keep the route inside the map, or use a map that covers the route.                                                                                                    |
| Leg N: ... below 50 m above ground, where Cyclops does not map-match. Fly higher.                                                                                        | Red    | Raise the waypoint altitudes on that leg.                                                                                                                             |
| Leg N: more than 2.0 km without enough map texture for Cyclops to correct its position (featureless ground such as fields or water). Route over more distinctive ground. | Red    | Route over roads, buildings and field edges instead of long uniform fields or water. **Suggest improvements** can help.                                               |
| Leg N: ... without map quality data; the prediction there assumes no correction.                                                                                         | Red    | Part of the map has no quality data. Regenerate the map's quality data in Vozilla.                                                                                    |
| Info: Leg 1: ... of departure climb below 50 m above ground. Cyclops does not map-match during this part of the climb.                                                   | Amber  | Information only, not a problem: the climb from home to the first waypoint is normally below 50 m. Make sure the first waypoint itself is at least 50 m above ground. |

Two more lines can appear when the selected map has no quality data:

* **Sign in and select the map to check the route against Cyclops map quality.**
* **This map has no quality data yet; generate it in Vozilla to check where Cyclops can correct.**

{% hint style="info" %}
Height above ground comes from Mission Planner's terrain data (SRTM). Where Mission Planner has no terrain data, the panel cannot tell the height above ground. It then does not warn about low altitude there, and it assumes Cyclops cannot correct there.
{% endhint %}

## Suggest improvements

**Suggest improvements** looks for small sideways moves of existing waypoints that give Cyclops more correction opportunities. Suggested moves are shown as blue dashed arrows. **Apply suggestions** moves those waypoints. Review the mission, then write it to the aircraft as usual. Mission Planner's Undo reverts the moves.

What the suggestions do and do not change:

* They **move** up to four existing ordinary waypoints by up to 500 m each. They never add or delete waypoints.
* Home, the first and last mission points, take-off, landing and all other commands stay where they are.
* Altitudes, altitude frames and command parameters are unchanged. **Suggestions never fix a low-altitude problem**; raise the altitude yourself.
* A move is never suggested if it leaves the map, adds distance outside the map or below 50 m, or makes the route cross itself.

| Message                                                                                                               | Meaning                                                     |
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| N suggested waypoint move(s) (blue). Apply to move existing waypoints; altitudes stay unchanged.                      | Review the arrows, then Apply or keep planning.             |
| No horizontal move of up to 500 m improves this mission. Altitudes are unchanged; review the warnings.                | Fix the problems by hand.                                   |
| N waypoint(s) moved horizontally. Altitudes and mission commands are unchanged. Review before writing to the vehicle. | Applied.                                                    |
| The mission changed. Suggest improvements again before applying moves.                                                | You edited the mission after the suggestion. Suggest again. |

## Position error predictions

Predicted position error in metres is **switched off** in this release. The panel says: **Error predictions are off until the Cyclops route model passes validation on flight data; only definite problems are shown.** The route is coloured by the problems above, not by predicted error.

{% hint style="warning" %}
A route with no problems is not a guarantee of accuracy.
{% endhint %}

## Messages

| Message                                                                | Fix                                                          |
| ---------------------------------------------------------------------- | ------------------------------------------------------------ |
| Wrong email or password.                                               | Check your Theseus account details.                          |
| Could not reach the Theseus cloud. Check the internet connection.      | Connect to the internet. Maps already downloaded still work. |
| Your Theseus session has expired. Sign in again.                       | Sign in again.                                               |
| Sign in to the Theseus cloud to load map quality.                      | Sign in, then choose the map.                                |
| This map has no quality data yet. Generate it in Vozilla first.        | Generate the map quality in Vozilla, then **Refresh maps**.  |
| The downloaded quality data is corrupt (checksum mismatch). Try again. | Choose the map again to download it again.                   |
| Add a home position and waypoints in Flight Plan to check the mission. | Plan at least a home and one waypoint.                       |
| This Mission Planner version does not expose its mission to plugins.   | Update Mission Planner; contact support if it persists.      |
| The mission check failed: ...                                          | Contact support with the message.                            |

## Before you fly

The Flight Plan check covers the planned route only. At the field, also follow the [Flight Data checklist](https://docs.theseus.us/cyclops/autopilot-integration/ardupilot/mission-planner-plugin/flight-data.md#before-every-flight): **Mission in map** in the Cyclops tab checks the mission actually on the aircraft against the map Cyclops is using.
