# LIDAR

<div><figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-2126ab6e8cc943e16b0c445f720d1dbf3161a0e8%2F870-00001-1.png?alt=media" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-65a14955443efcff45a4c96c0be567bdcd6e44bd%2FLidar.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="danger" %}
This part is not sold by Auterion.
{% endhint %}

Lidar sensors are used to measure the distance from the ground and they are normally integrated in the landing process to make it more robust and delicate.

The sensor can be connected to Skynode via the Pixhawk adapter board.

1. Connect Skynode to the Pixhawk adapter board using the Primary/Secondary 40 pin molex cables. If you need to use both side of the board you have to connect both 40 pin connectors (Primary AND Secondary) to Skynode.

<figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-c987bb07921ae4b08cdaa411c8cedbada74d24c7%2Fskynode_to_pixhawk_adaptor_board.jpg?alt=media" alt=""><figcaption></figcaption></figure>

2. Connect the Lidar sensor to the Pixhawk adapter board using the dedicated connectors\
   (I2C 2/J28 or I2C 1/J18)

<figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-c6b01d0bee49f7c0ecda9e13d7bab9b3aeebc4c1%2FPixhawkAdapter_annot.jpg?alt=media" alt=""><figcaption></figcaption></figure>

## Configuration

{% hint style="info" %}
For APX4 releases 3.2 and older this step is not required as the sensor is started by default.
{% endhint %}

* [Power Skynode](https://docs.auterion.com/hardware-integration/skynode/evaluation-kit/powering-skynode)​
* ​[Connect to it via USB-C or Wi-Fi](https://docs.auterion.com/hardware-integration/skynode/evaluation-kit/connect-to-amc)​
* Open Auterion Mission Control and enable the [Advanced Mode](https://docs.auterion.com/hardware-integration/flight-controller-customization/amcs-advanced-mode)​
* Navigate to the "Parameters" tab and change the parameter `SENS_EN_SF1XX` to SF/LW20/c

## Sensor functionality test

1. Access the AMC "Advanced Mode" by clicking five times on the AMC icon on the top left side of the screen.\
   At this point the following Pop-up window should appear on your screen.\
   Choose "Switch to Advanced".\
   Once the change has taken place, the icon should change appearance from the normal orange color, to a transparent one.

<figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-8c104f580a2133b4bc7357b64cd950bff28a7922%2FAdvanced_Mode.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Click once on the icon to open the Menu bar and click on "Analyze"

<figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-327bfc7ec6692712baa88946d0bfd8f81332b981%2FAdvancedMode_Analyze.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Choose "MAVLink Inspector" from the Menu bar on the left side and look for the "DISTANCE\_SENSOR" Parameter inside the MAVLink messages and click on it.\
   Now you will be able to see the `current_distance` value, which represents the distance measured by the sensor in cm.

<figure><img src="https://3329189600-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFW1Ge1p1f6WHyiYCb146%2Fuploads%2Fgit-blob-92b5c3e8d9944094e4fe4ce0b5ea87507bfe6efb%2FAdvanced_Mode_MAVLinkInspector.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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.auterion.com/hardware-integration/skynode/peripherals/lidar.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.
