> ## Documentation Index
> Fetch the complete documentation index at: https://bedrockdynamics.studio/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Playback

> Analyze recorded sessions with synchronized multi-panel playback -- MCAP recordings and ULog flight logs.

Substrate can open recorded data files and present them in a synchronized multi-panel layout. Scrub through time and every panel -- 3D viewer, plots, GPS map, log messages -- updates together. Two recording formats are supported.

## Synchronized Playback

Regardless of format, all recorded data shares the same playback controls:

<Tabs>
  <Tab title="Scrubbing">
    Drag the timeline cursor to any point in the recording. All panels update simultaneously to reflect that moment in time.
  </Tab>

  <Tab title="Playback Speed">
    Play back at configurable speeds: 0.5x, 1x, 2x, or 4x. Playback is wall-clock driven with frame-rate independent timing.
  </Tab>

  <Tab title="Step">
    Step forward frame by frame for precise inspection of transient events.
  </Tab>
</Tabs>

***

## ULog Files

Open a PX4 `.ulg` file directly in Substrate for post-flight analysis. The editor automatically arranges a purpose-built layout.

### Automatic Layout

<CardGroup cols={2}>
  <Card title="3D Viewer + GPS Map" icon="map">
    Top row. The 3D viewer reconstructs the vehicle pose via interpolated position and attitude channels. The GPS map renders the ground track.
  </Card>

  <Card title="Plot Groups + Logs" icon="chart-mixed">
    Bottom row. Four plot groups display attitude, position, velocity, and sensor data. A log panel shows timestamped entries with severity coloring.
  </Card>
</CardGroup>

### What's Included

| Data                   | Source                                                                           |
| ---------------------- | -------------------------------------------------------------------------------- |
| **3D pose**            | Interpolated from position + attitude channels (binary search + lerp)            |
| **GPS path**           | Latitude/longitude rendered as a 2D ground track and 3D spatial trace            |
| **Telemetry channels** | All logged topics available as plottable time-series                             |
| **Mode timeline**      | Color-coded bar showing controller mode transitions over time                    |
| **Log messages**       | Severity-colored entries (Error, Warning, Info, Debug) with search and filtering |
| **Parameters**         | Static parameter values recorded at boot, browsable in a dedicated section       |

### Attitude Plots

Roll, pitch, and yaw are plotted by default. Both setpoint and estimated values are shown, making it straightforward to evaluate controller tracking during maneuvers.

<Tip>
  Combine the mode timeline with attitude plots to find oscillations or tracking errors that correlate with specific mode transitions.
</Tip>

***

## MCAP Recordings

MCAP files recorded during live simulation sessions contain the full data stream -- scene graph updates, telemetry, images, transforms, and point clouds. Open an `.mcap` file to replay the session with the same multi-panel layout.

### What's Included

| Data             | Source                                                    |
| ---------------- | --------------------------------------------------------- |
| **3D scene**     | Full scene graph with meshes, materials, and pose updates |
| **Telemetry**    | All topics that were streaming during the recording       |
| **Images**       | Camera feeds captured during the session                  |
| **Transforms**   | TF tree history with interpolated playback                |
| **Point clouds** | Lidar and depth sensor data                               |

MCAP recordings are richer than ULog files because they capture the complete simulation state, not just autopilot telemetry. Use them when you need to review 3D scene behavior, sensor output, or multi-robot interactions.

<Note>
  Record MCAP files during a live simulation using the recording toggle in the telemetry panel. See the [Record & Replay](/substrate/guides/record-replay) guide for details.
</Note>

## Log Messages

Both formats support log message display with severity-based coloring:

* **Red** -- Error (levels 0-3)
* **Yellow** -- Warning (level 4)
* **Blue** -- Info (levels 5-6)
* **Gray** -- Debug (level 7+)

Use the search field and severity filter to narrow down entries when diagnosing issues.
