# Device calibration

Each VR device initially uses its own coordinate origin. Device calibration aligns those coordinates to the server’s global coordinate system so all clients agree on position and orientation.

---

## Locate the server IP 

To perform device calibration you need to enter the web-based management system of the server.

You can find the ip on the server’s GUI top left corner.

![Device calibration — Finding oms ip](./img/device_calibration/1.finding_oms_ip.png)

:::warning
Note that the ip displayed in the image "192.168.0.197" is probably different from yours.

:::

## Open the AR 51 Management System in a Browser

Enter the IP of the server in your browser.

Using the web interface, you can monitor the system and activate the calibration process.

![Device calibration — Open browser](./img/device_calibration/2.open_browser.png)

## Inside VR: Open an application on a device that has the AR 51 SDK

In Oculus Quest, "Developer apps" are usually located under “unknown sources” inside the oculus quest

<video aria-label="Device calibration — Unknown sources (Quest)" autoPlay loop muted playsInline>
  <source src={require('./img/device_calibration/3.unkown_sources_quest.mp4').default} type="video/mp4" />
</video>

Once the app is open on the device, you should see the device on the devices panel.

## Select your device on the AR 51’s web-based management system and start calibration

1. Select the device you wish to calibrate from the device panel.

2. You should see a blue box that indicates that the device was selected.

3. Press the **“Device Calibration”** button in the management system.

![Device calibration — Device calibration selected](./img/device_calibration/4.device_calibration_selected.png)

## Calibrate the device

### While in the VR application, lift both your hands so they are fully visible to the device’s cameras

The VR device should see your hands.

It is best if your hands are in front, between chest and head high.

<video aria-label="Device calibration — Device calibration hands" autoPlay loop muted playsInline>
  <source src={require('./img/device_calibration/5.device_calibration_hands.mp4').default} type="video/mp4" />
</video>

### Move slowly across the capture area while moving your hands

:::warning
Do not wave your hands too fast. Move them at a relaxed speed. \

Moving too fast can produce poor calibration quality.

:::

<video aria-label="Device calibration — Device calibration screen" autoPlay loop muted playsInline>
  <source src={require('./img/device_calibration/6.device_calibration_screen.mp4').default} type="video/mp4" />
</video>

### Character should "snap" onto your body (in VR)

You should see the character “snap” into place after a short while. 

This does not mean the calibration is over. 

You should still move around the capture area to improve the calibration.

<video aria-label="Device calibration — Device calibration within quest" autoPlay loop muted playsInline>
  <source src={require('./img/device_calibration/7.device_calibration_within_quest.mp4').default} type="video/mp4" />
</video>
