> 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/non-gps-ekf-initialization-in-ardupilot.md).

# Non-GPS EKF Initialization in Ardupilot

Properly the EKF is important for two reasons: \
\
1\. Significantly better dead reckoning performance than DCM mode\
2\. Cyclops consumes [LOCAL\_POSITION\_NED (32)](https://mavlink.io/en/messages/common.html#LOCAL_POSITION_NED) which is ≈ only published if the EKF has booted in flight.\
\
Ardupilot's EKF has unintuitive requirements for initialization. If you do not provide a GPS at startup, or an ExtNav input like a VIO or Optical Flow, Ardupilot will not properly boot the EKF. For more technical users, [this forum post](https://discuss.ardupilot.org/t/custom-ekf3-position-wind-reset-for-gps-denied-flight-arduplane-4-4-3/143360) provides a great overview.\
\
Advanced users who are used to flying without a GPS will likely already have a method to bootstrap their EKF. If you are familiar with this problem and have solved it for your platform, we recommend that you continue using your preferred method.\
\
We have tested and provide an Optical flow solution for VTOL fixed wings that works with stock Ardupilot, and a patch for Ardupilot that will enable you to initialize the EKF using only an airspeed sensor.

{% content-ref url="/pages/D1G1LkViS9A0gIYnWC3y" %}
[Optical Flow](/cyclops/autopilot-integration/non-gps-ekf-initialization-in-ardupilot/optical-flow.md)
{% endcontent-ref %}

{% content-ref url="/pages/rZjAmKXYmSpy8xBtdzzC" %}
[Ardupilot Patch](/cyclops/autopilot-integration/non-gps-ekf-initialization-in-ardupilot/ardupilot-patch.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.theseus.us/cyclops/autopilot-integration/non-gps-ekf-initialization-in-ardupilot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
