DJI Mobile SDK Documentation

      class PerceptionInformation

      class PerceptionInformation
      Package:dji.common.flightcontroller.flightassistant
      Description:

      This class contains the aircraft's perception information. It is supported only by Matrice 300 RTK.

      Class Members:
      Pack Count
      method
      method getDataPackageIndex
      int getDataPackageIndex()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      The perception package count.

      Return:
      intAn int value of the perception package index.
      Horizontal Object Count
      method
      method getAngleInterval
      float getAngleInterval()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Distance value detected away from the obstacles are at an interval of angle around the aircraft in 360 degrees horizontally.

      Return:
      floatA float value of angle interval.
      Distance Array
      method
      method getDistances
      int[] getDistances()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      Each value represents the distance in millimeters away from the obstacles detected around in 360 degrees horizontally at an interval of angle. Please refer to getDataPackageIndex to get the interval of angle. 0 degree points to the aircraft's heading. 90 degrees point to the right of the aircraft. 180 degrees point to the aircraft's tail.

      Return:
      int[]An array of int values.
      Upward Obstacle Distance
      method
      method getUpwardObstacleDistance
      int getUpwardObstacleDistance()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      The upward obstacle distance.

      Return:
      intAn int value of the upward obstacle distance.
      Downward Obstacle Distance
      method
      method getDownwardObstacleDistance
      int getDownwardObstacleDistance()
      Package:dji.common.flightcontroller.flightassistant
      Description:

      The downward obstacle distance. Not supported by Mavic Air 2 and DJI Air 2S

      Return:
      intAn int value of downward obstacle distance.