# Surveyor + MAVLink2Rest Position/Heading

These instructions set up using the Surveyor with position and heading from a mavlink2rest vehicle (e.g. Blueboat, BlueROV).&#x20;

Step 0: Go to Session Configurations in SonarView

Step 1. Click 'Add Device' and add your Surveyor with correct IP address and mounting/roll offsets and hit 'Save':

<figure><img src="https://2515205857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSYkdyxXfSDQsVcrx8VV1%2Fuploads%2FrS9yBeXYp48niyaBzQn6%2Fimage.png?alt=media&#x26;token=f05644c4-1cb2-46c9-ad83-6bee4fa0d200" alt="" width="251"><figcaption></figcaption></figure>

Surveyor Specific Options:

1. Mounting Angle:

   Roll: Sets the roll of the Surveyor relative to the vehicle. Since the Surveyor has an IMU to calculate the roll of the device, this just affects how the boat is displayed, not where the data ends up

   Pitch and yaw offsets must be 0
2. Mounting Offset (relative to center of Mavlink Vehicle):

   X: Positive if Surveyor is in front of the center of the vehicle

   Y: Positive if the Surveyor is starboard of the center of the vehicle

   Z: Positive if the Surveyor is below the center of the vehicle&#x20;

Click [here](https://app.gitbook.com/s/OPPBWdanG78xVyb6w4vq/coordinate-frame) for Surveyor coordinate frame definition

{% hint style="info" %}
Surveyor Specifc Options overwrite any offsets set up during a single device session
{% endhint %}

Step 2: Click 'Add Vehicle' and add your mavlink vehicle with correct IP address, the 'mavlink2rest' protocol, and the correct System ID. Hit Save:

<figure><img src="https://2515205857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSYkdyxXfSDQsVcrx8VV1%2Fuploads%2FboOpUh6TZ3tHa7KUz8gW%2Fimage.png?alt=media&#x26;token=bf9473f2-0656-4070-8990-01d97d42b7fb" alt=""><figcaption></figcaption></figure>

Step 3: Click 'Add Session', add the Surveyor and Vehicle to the session, and hit 'Save'. Your Session Configurations page should now have something like this:<br>

<figure><img src="https://2515205857-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSYkdyxXfSDQsVcrx8VV1%2Fuploads%2FN55ax5htMwXuVqxaTQi9%2Fimage.png?alt=media&#x26;token=01699d3f-fad9-4221-b7df-4d9b5febecc0" alt=""><figcaption></figcaption></figure>

With that completed and your Surveyor and vehicle connected to SonarLink, you can now find this session in discovery and connect to it.
