> For the complete documentation index, see [llms.txt](https://docs.ceruleansonar.com/c/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ceruleansonar.com/c/omniscan3d/sonarview/position-and-heading-source.md).

# Position and Heading Source

To position Omniscan 3D data correctly in space, SonarView requires position and heading data from an external source. Currently supported sources include NMEA 0183, NMEA 2000, and mavlink2rest. After setting up your source, configure it in Session Configurations so SonarView knows where to receive the data.

{% hint style="info" %}
Before starting this process, make sure you have completed the [Quick Start guide](/c/omniscan3d/getting-started/quick-start-upgrade-kit.md) and can connect to your Omniscan 3D unit(s)
{% endhint %}

#### 1. Session Configurations

From the main page of SonarView, go to **Session Configurations.** It should look something like this:

<figure><img src="/files/oeCDizySsm8V9Fbe4frT" alt=""><figcaption></figcaption></figure>

#### 2. Add Omniscan 3D Device(s)

First, add your **Omniscan 3D** device by clicking **+ Add Device**. This opens the device editor. If your **Omniscan 3D** device is powered on and available, click **Detect Devices** to automatically populate the required information. It should look something like this:

<figure><img src="/files/HXF0WbIcJGEUiQpAPHAu" alt="" width="378"><figcaption></figcaption></figure>

{% hint style="info" %}
Port # for OS3D is 62312
{% endhint %}

Depending on if you are running the upgrade kit (RX16 + Omniscan) or the self-contained variant of the Omniscan 3D (most common), the setup is slightly different.&#x20;

{% tabs %}
{% tab title="Self-contained" %}

* Set up an Omniscan 3D device per unit and add them to a session together
* Fill in the mounting information here. The **Mounting Angle** and **Mounting Offset** are defined relative to the orientation and position of your heading and position source. In this example, the **Omniscan 3D** unit is pointed **90° to port** relative to the source and is mounted **1 meter to port** and **1.5 meters below** it.&#x20;
  {% endtab %}

{% tab title="Upgrade Kit" %}

* Only define **ONE** Omniscan 3D device regardless of if you're running port and starboard units
* Ignore mounting angles here in Session Configurations. Those will be configured once connected in OS3D Configuration
  {% endtab %}
  {% endtabs %}

Once you are satisfied with these settings, click **Save**.&#x20;

#### 3. Add Position/Heading Source

Follow the appropriate instructions depending on whether your position/heading source is **NMEA** or **mavlink2rest**.

{% tabs %}
{% tab title="NMEA" %}
Your device must supply at **least** one heading message and one position message. Below are supported position and heading messages.

| NMEA Variant | Heading       | Position |
| ------------ | ------------- | -------- |
| 0183         | HDT, HDG, THS | GGA, RMC |
| 2000         | 127250        | 129025   |

{% hint style="info" %}
We also support other messages for information such as altitude, heave, course-over-ground, etc. Some other supported messages include 129026, 127252, PASHR, VTG, CHC, and others. Feel free to inquire about additional message support
{% endhint %}

{% hint style="info" %}
One commonly used set up we support is the Garmin MSC 10 + NMEA -> serial converter
{% endhint %}

To add an NMEA position/heading source, click **+ Add Device**. Because device discovery can’t detect arbitrary NMEA sources, you’ll need to configure it manually. For **Device Type**, select **Generic GPS**. It should look something like this:

<figure><img src="/files/2oUYQ0JBdl8YfjgTGMZO" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
NMEA data can also be provided via TCP/UDP
{% endhint %}

With your Omniscan 3Ds and NMEA source configured, add them to a session like this:

<figure><img src="/files/2HQmpY1F8MlVtlwAK0sX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6dmQljD9EilU9YSNc6gb" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="mavlink2rest" %}
To add a mavlink2rest position/heading source (e.g. a BlueBoat), you will need to select **+ Add Vehicle** from the main page of Session Configurations. It should end up looking something like this

<figure><img src="/files/DuPtyCu37OPvOxc7WsxO" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure your System ID matches that of your vehicle
{% endhint %}

Next, add the vehicle and Omniscan 3Ds to a session together like this:

<figure><img src="/files/kALFJiG5xNviIhttbMR4" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bOxrQmfI0b6QwAZ3svC2" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

With your session configured correctly and all devices connected, return to **Discovery** and connect to your custom session. Once you click **Start**, data collection should begin, and you should see your position and heading update in the view.
