> For the complete documentation index, see [llms.txt](https://skydel.gitbook.io/skydel-plug-ins-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://skydel.gitbook.io/skydel-plug-ins-documentation/plug-in-development/roles/position-observer.md).

# Position Observer

This section contains a description of the SkydelPositionObserverInterface supported by Skydel.

## Real Time Positions

During simulation initialization, Skydel will ask for a `SkydelRuntimePositionObserver*` from every plug-in via the `createRuntimePositionObserver` method. It's mandatory to fully give the ownership of the returned pointer to Skydel.

During simulation, Skydel will send the vehicle position data in *ecef* at 1000 Hz via the `pushPosition` method with the following data structure:

| TimedPosition                 | Unit        |
| ----------------------------- | ----------- |
| time                          | millisecond |
| position(x, y, z)             | meter       |
| orientation(roll, pitch, yaw) | radian      |

## Dynamic User Interface

During simulation initialization, Skydel will provide opportunity for plug-ins to connect to their user interface for real-time updates via the `connectToView` method. The `QWidget*` parameter is the same as the one created by the `createUI` method.

## Example

See the plug-in example [position\_observer\_plugin](https://github.com/learn-safran-navigation-timing/skydel-example-plugins/tree/master/source/position_observer_plugin) for more information. It covers:

* Receiving real time position data
* Updating the user interface
* Logging in the temporary folder
* Sending position data on the network


---

# 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://skydel.gitbook.io/skydel-plug-ins-documentation/plug-in-development/roles/position-observer.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.
