DJI Mobile SDK Documentation

      class PerceptionInfo

      class PerceptionInfo
      Package:dji.v5.manager.aircraft.perception
      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 isOverallObstacleAvoidanceEnabled
      @Deprecated
      boolean isOverallObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception
      Description:

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

      Return:
      booleanReturn whether the main switch of obstacle avoidance is turned on.
      method isUpwardObstacleAvoidanceEnabled
      boolean isUpwardObstacleAvoidanceEnabled()
      Package:dji.v5.manager.aircraft.perception
      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
      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
      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 getObstacleAvoidanceType
      ObstacleAvoidanceType getObstacleAvoidanceType()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Get type of obstacle avoidance.

      Return:
      ObstacleAvoidanceTypeReturn the type of obstacle avoidance.
      method getUpwardObstacleAvoidanceWarningDistance
      double getUpwardObstacleAvoidanceWarningDistance()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Get upward vision warning distance of obstacle avoidance.

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

      Get downward vision warning distance of obstacle avoidance.

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

      Get horizontal vision warning distance of obstacle avoidance.

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

      Get upward vision warning distance of braking avoidance.

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

      Get downward vision warning distance of braking avoidance.

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

      Get horizontal vision warning distance of braking avoidance.

      Return:
      doubleReturn horizontal vision warning distance of braking avoidance.
      method isVisionPositioningEnabled
      boolean isVisionPositioningEnabled()
      Package:dji.v5.manager.aircraft.perception
      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
      Description:

      Get whether the precise positioning is opened.

      Return:
      booleanReturn whether the precise positioning is opened.