DJI Mobile SDK Documentation

      class Capabilities

      class Capabilities implements DJIParamAccessListener
      Package:dji.sdk.lidar
      Description:

      Some of the lidar's parameters have dynamic ranges. The Capabilities class allows you to query the valid range for a parameter. Type-casting is required to get the corresponding enumerator value for each range element.

      Class Members:

      Point Cloud Setting

      Point Cloud Sampling Rate
      method
      method dataSampleRates
      DJILidarPointCloudSamplingRate[] dataSampleRates()
      Package:dji.sdk.lidar
      Description:

      Returns the current valid range of sampling rate. Returns null if current lidar has no supported lidar data sample rate or the lidar is disconnected.

      Return:
      DJILidarPointCloudSamplingRate[]Array of DJILidarPointCloudSamplingRate elements. Each element represents one current supported lidar data sample rate.


      State Updates

      method addDJILidarParametersListener
      void addDJILidarParametersListener(DJILidarParametersListener listener)
      Package:dji.sdk.lidar
      Description:

      Adds the listener for lidar parameters change events.

      Input Parameters:
      DJILidarParametersListener listenerPoint cloud status change listener.
      method removeDJILidarParametersListener
      void removeDJILidarParametersListener(DJILidarParametersListener listener)
      Package:dji.sdk.lidar
      Description:

      Remove the listener for lidar parameters change events.

      Input Parameters:
      DJILidarParametersListener listenerPoint cloud status change listener.
      method removeAllListener
      void removeAllListener()
      Package:dji.sdk.lidar
      Description:

      Remove all lidar parameters listeners.


      Listener Method

      Sampling Rate Range Change
      method
      method onLidarSamplingRateRangeChange
      void onLidarSamplingRateRangeChange(DJILidarPointCloudSamplingRate[] newRange)
      Package:dji.sdk.lidar
      Description:

      When the lidar sampling rate range is changed, the listener will receive this callback.

      Input Parameters:
      DJILidarPointCloudSamplingRate[] newRangeThe new range