Obstacle Avoidance

The Obstacle Avoidance feature provides automated safety protection during drone operations by detecting and responding to obstacles in the flight path. This system continuously monitors the drone’s surroundings and automatically executes configured safety actions when obstacles are detected within specified distances.

The Obstacle Avoidance system uses multiple sensor types to detect obstacles around your drone. When an obstacle is detected within your configured safety distance, the system automatically executes your chosen safety action (hover, return home, or do nothing).

Note

  • DJI drones have built-in obstacle avoidance sensors. Additionally, it is possible to attach a standalone radar sensor or an additional altimeter to both DJI and MAVLink-controlled drones.
  • If you want to use both DJI and SkyHub obstacle avoidance at the same time, make sure the Brake distance value in DJI Pilot 2 is smaller than the Safety distance limit in SkyHub Obstacle Avoidance. Otherwise, the two algorithms can interfere with each other and lead to unpredictable behaviour.

There are two main obstacle avoidance setup use cases:

  1. Perform the flight only with the built-in DJI obstacle avoidance sensors.
  2. Perform the flight with built-in DJI obstacle avoidance sensors paired with an external radar or altimeter.

Caution

In both scenarios, the DJI built-in downward obstacle avoidance sensors must be disabled if the drone is carrying a payload beneath. Otherwise, the downward sensor will detect the payload as an obstacle, and the failsafe will be triggered.

External sensors are necessary to add a layer of security in conditions when built-in DJI sensors will fail: dark, snow, rain, fog, and bright sun.

Tip

Do not forget to check if 77 GHz range sensors are permitted for use in your particular country.

Setup process

  • Power on the system.
  • Establish either the drone link or auxiliary connection with the SkyHub in the UgCS-CPM software.
  • On the main screen of the UgCS-CPM, click on the “Settings” button.
  • From the drop-down list, select “Obstacle avoidance”.
  • Select the safety action.
  • Select the activation altitude.
  • Select the activation speed.
  • Select the altitude source (source to measure if the drone has reached the activation altitude you set previously).
  • Select the minimal safety distance threshold (minimal distance to the obstacle to detect. Values below this limit will be ignored).
  • Select the safety distance limit (distance at which the failsafe will be triggered).
  • (optional) Select the altimeter safety source (if your setup contains multiple altimeters and you wish to use one of them as a proximity source).
  • (optional) Select the radar safety source (if your setup contains an external radar MR72).
../../../_images/OA-settings.png

When the drone is on the ground or hovering in the air, the obstacle avoidance system is in an idle state. For obstacle avoidance to be armed and active, the drone must reach a certain altitude and speed, or the TTF/GH mission under SkyHub control must be activated.

Those values can be set in the “Settings” within the UgCS-CPM.

../../../_images/OA-activation-criteria.png

Note

If no SkyHub mission is running, obstacle avoidance will be active only when both the activation altitude and activation speed are reached simultaneously. Otherwise, the system will be in an idle state.

Safety actions

The safety action will determine the drone’s behavior in case of proximity to an object.

Here is the list of available actions you can choose from:

Action Description
RETURN_TO_HOME Stop mission and initiate automatic return to home.
STOP_AND_HOVER Stop mission and maintain current position.
WARNING Display warning message, continue mission.
NOTHING No action will be taken, monitoring only.

Altitude sources

Within the Altitude source, you can select the elevation source that will be used to check whether your drone has reached the activation altitude.

There are multiple altitude sources you can choose from:

Altitude source Description
Default Use your default altimeter to measure activation altitude.
DJI (autopilot) Use the DJI built-in barometric readings to measure activation altitude.
Mavlink (autopilot) Use the Mavlink built-in barometric readings to measure activation altitude.
Custom Use a custom source of elevation.

Tip

It is also possible to select the exact altimeter model from the list. This is designed for flight cases in which there are multiple altimeters mounted on the drone.

If your setup contains only one altimeter, choose between the “Default” or “Autopilot” values.

../../../_images/OA-altitude-sources.png

Safety sources

Within the safety sources, you can select the source you wish to use to measure the distance to an object (proximity).

There are three safety sources you can modify:

  • Altimeter safety source - if your setup contains multiple altimeters, and you want to use one of them to measure the distance to an object.
  • Radar safety source - if your setup contains an external MR72 radar, and you wish to use it to measure the distance to an object.
  • Embedded DJI sensors – cannot be configured with UgCS-CPM. Instead, SkyHub will use sensors that are enabled with the DJI Pilot 2 application.

Note

Embedded DJI obstacle avoidance (OA) sensors continue to work in parallel with the selected safety source, unless they are turned off in the Obstacle Avoidance settings.

../../../_images/OA-sensor-switches.png

Danger

Do not modify Altimeter safety source if your setup contains only one altimeter. This field is designed only if your drone has multiple altimeters mounted at the same time.

Use case examples

  1. 1. If your setup contains only one altimeter (for the altitude measurement) and no external MR72 radar, your setup should be the following:
  • Altimeter safety source - None
  • Radar safety source - No radar

In this case, the safety distance will be calculated from the built-in front DJI obstacle avoidance sensor.

../../../images/OA-no-radar.png

  1. 2. If your setup contains only one altimeter (for the altitude measurement) and you have an external MR72 radar, your setup should be the following:
  • Altimeter safety source - None
  • Radar safety source - Nanoradar MR72

In this case, the safety distance will be calculated from the external Nanoradar MR72 mounted on the drone.

../../../images/OA-with-radar.png

Configuration Parameters Summary

ParameterDefaultMinMaxPrecisionUnitOptionsDescription
Safety actionSTOP_AND_HOVERRETURN_TO_HOME, STOP_AND_HOVER, WARNING, NOTHINGDrone action flying to close to obstacle
Activation altitude20.00.0500.00.01mObstacle Avoidance activation altitude
Activation speed8.00.015.00.01m/sObstacle Avoidance activation speed
Altitude sourceDefaultLightware SF30D, Ainstein US-D1, Nanoradar NRA24, DJI (autopilot), DefaultAltitude source that will be used for obstacle avoidance activation
Threshold0.50.050.00.01mMinimal distance to obstacle to detect. Values below this limit will be ignored
Safety distance limit5.00.050.00.01mSafety distance at which failsafe is triggered
Altimeter safety sourceNoneNone, Lightware SF30D, Ainstein US-D1, Nanoradar NRA24, DefaultSafety distance sources
Radar safety sourceNo radarNanoradar MR72, No radarSafety distance sources
SensorsFRONT BACK LEFT RIGHT UPFront, Back, Left, Right, UpInternal drone obstacle avoidance sensors to use