# IL-2 Sturmovik

## Connection Method

**UDP** — IL-2 Sturmovik sends telemetry data over UDP via its motion device and telemetry device interfaces.

* **Default IP**: `127.0.0.1`
* **Default Port**: `20888`

## Setup Steps

To enable telemetry output, edit the game's `data/startup.cfg` file and add the following two sections:

```
[KEY = motiondevice]
    addr = "127.0.0.1"
    decimation = 1
    enable = true
    port = 20888
[END]
[KEY = telemetrydevice]
    addr = "127.0.0.1"
    decimation = 1
    enable = true
    port = 20888
[END]
```

### Using alongside other telemetry software

If you use another application that also uses IL-2 telemetry data (like SimShaker), you can output to both the DRSM port and the default port **4321**:

```
[KEY = telemetrydevice]
	addr = "127.0.0.1"
	addr1 = "127.255.255.255:20888"
	decimation = 1
	enable = true
	port = 4321
[END]
[KEY = motiondevice]
	addr = "127.0.0.1"
	addr1 = "127.255.255.255:20888"
	decimation = 1
	enable = true
	port = 4321
[END]
```

## Available Telemetry

* **Orientation**: Pitch, Roll, Yaw
* **Acceleration**: Full 3-axis acceleration
* **Angular Velocity**: Rotation rates
* **Speed**: Airspeed
* **RPM**: Engine RPM
* **Altitude**: Above ground level

### Telemetry Quality: ★★★★☆

## Recommended Starting Settings

* **Primary Cue Gain**: 60–90%
* **Smoothing**: Low to medium
* **Washout**: Medium

## Known Quirks

* **Both motion and telemetry devices needed**: IL-2 has separate motion and telemetry data streams. Both sections must be added to `startup.cfg` for full telemetry coverage.
* **Decimation**: Setting `decimation = 1` sends every physics frame. Higher values skip frames.

## Troubleshooting

### No telemetry data

1. Verify both `[KEY = motiondevice]` and `[KEY = telemetrydevice]` sections are present in `data/startup.cfg`.
2. Ensure `enable = true` is set in both sections.
3. Check that the port matches DR Sim Manager's listen port (default `20888`).
4. Make sure you are in a mission flying an aircraft.


---

# Agent Instructions: 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:

```
GET https://docs.departedreality.com/dr-sim-manager/general/sources/il-2-sturmovik.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
