DJI Mobile SDK Documentation

      class PerceptionInfo

      class PerceptionInfo
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      perception information,includes the switch status of obstacle avoidance, braking distance and warning distance.

      Supported since MSDK 5.0.0

      Class Members:

      Members

      method getUpwardObstacleAvoidanceWorking
      Boolean getUpwardObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the upward vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the upward vision obstacle avoidance sensor is working.
      method getDownwardObstacleAvoidanceWorking
      Boolean getDownwardObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the downward vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the downward vision obstacle avoidance sensor is working.
      method getLeftSideObstacleAvoidanceWorking
      Boolean getLeftSideObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the left side vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the left side vision obstacle avoidance sensor is working.
      method getRightSideObstacleAvoidanceWorking
      Boolean getRightSideObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the right side vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the right side vision obstacle avoidance sensor is working.
      method getForwardObstacleAvoidanceWorking
      Boolean getForwardObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the forward vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the forward vision obstacle avoidance sensor is working.
      method getBackwardObstacleAvoidanceWorking
      Boolean getBackwardObstacleAvoidanceWorking()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the backward vision obstacle avoidance sensor is working.

      Return:
      BooleanReturn whether the backward vision obstacle avoidance sensor is working.
      method isUpwardObstacleAvoidanceEnabled
      boolean isUpwardObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the upward vision switch of obstacle avoidance is turned on.

      Return:
      booleanReturn whether the upward vision switch of obstacle avoidance is turned on.
      method isDownwardObstacleAvoidanceEnabled
      boolean isDownwardObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the downward vision switch of obstacle avoidance is turned on.

      Return:
      booleanReturn whether the downward vision switch of obstacle avoidance is turned on.
      method isHorizontalObstacleAvoidanceEnabled
      boolean isHorizontalObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the horizontal vision switch of obstacle avoidance is turned on.

      Return:
      booleanReturn whether the horizontal vision switch of obstacle avoidance is turned on.
      method getUpwardObstacleAvoidanceWarningDistance
      double getUpwardObstacleAvoidanceWarningDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get upward vision warning distance of obstacle avoidance. Unit: meter.

      Return:
      doubleReturn upward vision warning distance of obstacle avoidance.
      method getDownwardObstacleAvoidanceWarningDistance
      double getDownwardObstacleAvoidanceWarningDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get downward vision warning distance of obstacle avoidance. Unit: meter.

      Return:
      doubleReturn downward vision warning distance of obstacle avoidance.
      method getHorizontalObstacleAvoidanceWarningDistance
      double getHorizontalObstacleAvoidanceWarningDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get horizontal vision warning distance of obstacle avoidance. Unit: meter.

      Return:
      doubleReturn horizontal vision warning distance of obstacle avoidance.
      method getUpwardObstacleAvoidanceBrakingDistance
      double getUpwardObstacleAvoidanceBrakingDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get upward vision warning distance of braking avoidance. Unit: meter.

      Return:
      doubleReturn upward vision warning distance of braking avoidance.
      method getDownwardObstacleAvoidanceBrakingDistance
      double getDownwardObstacleAvoidanceBrakingDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get downward vision warning distance of braking avoidance. Unit: meter.

      Return:
      doubleReturn downward vision warning distance of braking avoidance.
      method getHorizontalObstacleAvoidanceBrakingDistance
      double getHorizontalObstacleAvoidanceBrakingDistance()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get horizontal vision warning distance of braking avoidance. Unit: meter.

      Return:
      doubleReturn horizontal vision warning distance of braking avoidance.
      method isVisionPositioningEnabled
      boolean isVisionPositioningEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the vision positioning is opened.

      Return:
      booleanReturn whether the vision positioning is opened.
      method isPrecisionLandingEnabled
      boolean isPrecisionLandingEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the precise positioning is opened.

      Return:
      booleanReturn whether the precise positioning is opened.
      method isOverallObstacleAvoidanceEnabled
      @Deprecated
      boolean isOverallObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception.data
      Description:

      Get whether the main switch of obstacle avoidance is turned on.

      Note: This interface has been deprecated since MSDK 5.1.0. Please call getObstacleAvoidanceType to get whether the obstacle avoidance switch is enabled. For millimeter wave radar accessories, you need to call getObstacleAvoidanceEnabled to get whether the obstacle avoidance switch is enabled.

      Return:
      booleanReturn whether the main switch of obstacle avoidance is turned on.