DJI Mobile SDK Documentation

      class ObstacleData

      class ObstacleData
      Package:dji.v5.manager.aircraft.perception
      Description:

      obstacle data, including obstacle ranging data.

      Supported since MSDK 5.1.0

      Class Members:

      Members

      method getHorizontalAngleInterval
      int getHorizontalAngleInterval()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Gets the angular interval of horizontal obstacle ranging data, which is an angular interval around the aircraft at 360 degrees in the horizontal direction. for example: If the value is 1, it means that getHorizontalObstacleDistance has 360 data (360/1) of horizontal obstacle ranging data obtained.

      Return:
      intReturns the angular interval of horizontal obstacle ranging data.
      method getHorizontalObstacleDistance
      List<Integer> getHorizontalObstacleDistance()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Gets horizontal obstacle ranging data. The angular interval of the horizontal obstacle ranging data can be obtained through getHorizontalAngleInterval.

      Return:
      List<Integer>Returns horizontal obstacle ranging data.
      method getUpwardObstacleDistance
      int getUpwardObstacleDistance()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Gets the distance measurement data of upward obstacles. Indicates the distance between the aircraft and the upward obstacle.

      Return:
      intReturns upward obstacle ranging data.
      method getDownwardObstacleDistance
      int getDownwardObstacleDistance()
      Package:dji.v5.manager.aircraft.perception
      Description:

      Gets the distance measurement data of downward obstacles. Indicates the distance between the aircraft and the downward obstacle.

      Return:
      intReturns the downward obstacle ranging data.