# Collision Avoidance Sensing (CAS)

* Collision Avoidance Sensing enables your drone to detect obstacles in real-time.
* To configure this feature for your drone, navigate to the DJI Pilot 2 app, wherein you can toggle the "Obstacle Avoidance" feature and set the braking and warning distance for your drone. The drone will adhere to the RC's settings and automatically stop when an obstacle is detected within its braking distance.
* Your drone has two types of detection systems: the vision system and the infrared sensing system. These systems work together, allowing the drone to detect objects and stop at a set braking distance.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FOfYbSuFPj2p5LtLFhwJ6%2Fimage.png?alt=media&#x26;token=d697c515-caf9-4801-8658-dad1d1f5b535" alt=""><figcaption><p>Detection Range of the Vision System (Source: DJI)</p></figcaption></figure>

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FYBEjJ1zF8W8wgMOiK21d%2Fimage.png?alt=media&#x26;token=53bc931f-666b-4347-8cfa-88a44bd0a836" alt=""><figcaption><p>Detection Range of the Infrared Sensing System (Source: DJI)</p></figcaption></figure>

{% hint style="info" %}
For more detailed information regarding the behavior of Obstacle Sensing, please consult the [DJI User Manual](https://dl.djicdn.com/downloads/m30_series_dock_bundle/UM/20230824/M30_Series_Dock_Bundle_User_Manual_v1.4_1EN.pdf), specifically on pages 39-47.
{% endhint %}

## Configuring Collision Avoidance Sensing for your Drone

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FxZqTFqQVUoKAbDHlQ2aV%2FRC%20Video%20(1).gif?alt=media&#x26;token=ecee4f6a-47e3-4867-a246-75f1bd13d541" alt=""><figcaption><p>Configuring Collision Avoidance Sensing for your Drone</p></figcaption></figure>

* Ensure that your Drone is powered "ON".
* Navigate to DJI Pilot 2 app on your RC Plus and bind the drone. (Ensure that RC Plus is selected as "Controller B")

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FjH3xXzUfLsZdOMNzv6Ad%2Fimage.png?alt=media&#x26;token=5c2d6278-8ea2-4f32-88d1-827ca060b905" alt=""><figcaption><p>Setting RC Plus as "Controller B"</p></figcaption></figure>

* Click on the "Enter Camera View" button.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FNvPBDTIhOGNK1CgqFLqj%2Fimage.png?alt=media&#x26;token=796059a8-0822-4f9d-a05d-c898cd023a1d" alt=""><figcaption><p> DJI Pilot 2 app window</p></figcaption></figure>

* Navigate to "Obstacle sensing settings" by clicking on <img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2F6QiLDtWfKhKYdhhCUGtX%2Fimage.png?alt=media&#x26;token=b9cb7896-9d84-44f4-afd1-5a08341db948" alt="" data-size="line">button.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FmAcGEnn34CDHDTBQuhJe%2Fimage.png?alt=media&#x26;token=34e1a6c5-e8da-4f74-8414-386e9a342d76" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FVXzlktNMCZsGyRyf1C1d%2Fimage.png?alt=media&#x26;token=ab9a4a45-f9a3-4bd8-8486-380776138d8c" alt=""><figcaption><p>Navigating to "Obstacle Sensing Settings"</p></figcaption></figure>

* Ensure that the Obstacle Avoidance toggle is set to "Brake," indicating that the obstacle avoidance feature for your drone is powered "ON."
* Configure the "Braking Distance" and "Warning Distance" for Horizontal, Vertical and Downward obstacle avoidance sensors.

{% hint style="info" %}
The warning distance must be set larger than the braking distance.
{% endhint %}

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FhAvyUA5rAzs4s2YJG9Ta%2Fimage.png?alt=media&#x26;token=ad20eaba-104d-4f0a-a029-abef357a0cb7" alt=""><figcaption><p>Configuring Braking and Warning Distance</p></figcaption></figure>

## Navigating to Collision Avoidance Sensing (CAS) on the FlytBase Dashboard

* Click on <img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2F7kSlRrIIzSvba7iz09gA%2Fimage.png?alt=media&#x26;token=2b678c97-3fd6-4325-93e0-bfe94443e6b0" alt="" data-size="line">button and navigate to "Device Management" tab.
* Select the device that you want to configure.
* Go to "Device Settings".
* Under this, you can see information related to Collision Avoidance Sensing (CAS) on the FlytBase dashboard.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2F5te7lVj7Bt4oix8YQwDT%2Fcapture_20240419191050553.bmp?alt=media&#x26;token=b164aa91-a367-4a27-99e6-44d9b0466c31" alt=""><figcaption><p>CAS Information and Toggle button</p></figcaption></figure>

* While using manual controls, you would be able to see the navigation display showing nearby obstacles around the drone.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FJLT13QVGFFo9gxV6LfkJ%2FNearby%20Obstacles_02-01.jpg?alt=media&#x26;token=58283688-6d7e-4f5c-9604-2ee65f6f14e7" alt=""><figcaption><p>Navigation display showing nearby obstacles</p></figcaption></figure>

## Expected Behavior

| Scenario                                   | Description                         | Behaviour                                                                                                                                                                                        |
| ------------------------------------------ | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Drone is performing an autonomous mission. | It detects an obstacle on its path. | The drone will stop at the configured braking distance and hover. You can either take in manual controls to move around or perform RTH.                                                          |
| Drone is performing RTH                    | It detects an obstacle on its path. | The drone will stop at the configured braking distance and hover. You can take in manual controls to move the aircraft away.                                                                     |
| Drone is performing a manual mission.      | It detects an obstacle on its path. | You will be able to see nearby obstacles on the navigation display for enhanced situational awareness. The drone will stop at a configured braking distance and hover. You can then perform RTH. |

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FdmQfJqGxemWQXssWfTMX%2Fimage.png?alt=media&#x26;token=5c33b118-0af7-4928-91c5-dc59c903e821" alt=""><figcaption><p>Collision Avoidance Sensing (CAS) Navigation Display while using Manual Controls </p></figcaption></figure>

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FvL28KZweEiquuSa1jc4A%2Fimage.png?alt=media&#x26;token=19411262-7ccd-45f5-afee-ac887547a506" alt=""><figcaption><p>Collision Avoidance Sensing (CAS) Navigation Display in Cockpit View</p></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.flytbase.com/device-management/device-management/dji-docks/device-settings/collision-avoidance-sensing-cas.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.
