DJI Mobile SDK Documentation

      class IRadarManager

      interface IRadarManager
      Package:dji.v5.manager.interfaces
      Description:

      Class to manager radar, which is used to turn on and off the radar obstacle avoidance switch and obtain obstacle ranging data.

      Supported since MSDK 5.1.0

      Class Members:
      method setObstacleAvoidanceEnabled
      void setObstacleAvoidanceEnabled(boolean isEnabled, @NonNull
      PerceptionDirection direction, CommonCallbacks.CompletionCallback callback)
      Package:dji.v5.manager.interfaces
      Description:

      Turn on or turn off the sub switch of radar obstacle avoidance. Only when the main switch setOverallObstacleAvoidanceEnabled is enabled, the sub switch can be enabled. Millimeter-wave radar does not support downward obstacle avoidance.

      Supported since MSDK 5.1.0

      Input Parameters:
      boolean isEnabledtrue means that turn on the sub switch of radar obstacle avoidance.
      @NonNull PerceptionDirection directionDirection of the sub switch of radar obstacle avoidance.
      CommonCallbacks.CompletionCallback callbackReturn the callback of execution result.
      method getObstacleAvoidanceEnabled
      void getObstacleAvoidanceEnabled(@NonNull PerceptionDirection direction, @NonNull CommonCallbacks.CompletionCallbackWithParam<Boolean> callback)
      Package:dji.v5.manager.interfaces
      Description:

      Return whether to turn on the sub switch of radar obstacle avoidance.

      Supported since MSDK 5.1.0

      Input Parameters:
      @NonNull PerceptionDirection directionDirection of the sub switch of radar obstacle avoidance.
      @NonNull CommonCallbacks.CompletionCallbackWithParam<Boolean> callbackReturn the callback of execution result.
      method addRadarInformationListener
      void addRadarInformationListener(RadarInformationListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Set the listener of radar information.

      Supported since MSDK 5.1.0

      Input Parameters:
      RadarInformationListener listenerListener of radar information.
      method removeRadarInformationListener
      void removeRadarInformationListener(RadarInformationListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove the listener of radar information.

      Supported since MSDK 5.1.0

      Input Parameters:
      RadarInformationListener listenerListener of radar information.
      method clearAllRadarInformationListener
      void clearAllRadarInformationListener()
      Package:dji.v5.manager.interfaces
      Description:

      Remove all the listeners of radar information.

      Supported since MSDK 5.1.0