> 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/radio-time-observer.md).

# Radio Time Observer

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

## Radio Time

During simulation initialization, Skydel will ask for a `SkydelRuntimeRadioTimeObserver*` from every plug-in via the `createRuntimeRadioTimeObserver` method. It is mandatory to give full ownership of the returned pointer to Skydel.

During simulation, Skydel will send an estimate of the radio time at 1000 Hz via the `pushRadioTime` method with the following data structure. For more details on the usage of this information, see the [Time Synchronization](/skydel-plug-ins-documentation/plug-in-development/time-synchronization.md) section.

| RadioTimeEstimate  | Definition                                                | Unit                     |
| ------------------ | --------------------------------------------------------- | ------------------------ |
| radioElapsedTimeMs | Latest radio simulation estimated time                    | millisecond              |
| osTime             | Operating system time point of when the estimate was made | std::chrono::time\_point |

## Helper Functions

#### getDeadline(int64\_t elapsedMs, const RadioTimeEstimate& recentEstimate)

Returns an operating system `time_point` for when the RF corresponding to the given `elapsedMs`is expected to be broadcast from the radio.

This same deadline can be used in conjunction with the `DelayedBroadcaster` in the given example to broadcast a UDP packet at the same time as the RF.

#### microsecondsUntilRadioTransmission(int64\_t elapsedMs, const RadioTimeEstimate& recentEstimate)

Returns an integer number of microseconds until RF corresponding to the given `elapsedMs` is expected to be broadcast from the radio.

## Dynamic User Interface

Same as `SkydelPositionObsereverInterface`, see [Position Observer](/skydel-plug-ins-documentation/plug-in-development/roles/position-observer.md#dynamic-user-interface) of [Position Observer](/skydel-plug-ins-documentation/plug-in-development/roles/position-observer.md) for more details.

## Example

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

* Receiving the radio time data in real time
* Updating the user interface
* Synchronizing multiple types of real time data
* Synchronizing real time data with RF transmission


---

# 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/radio-time-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.
