class Capabilities
class Capabilities implements DJIParamAccessListener
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()
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:
State Updates
method addDJILidarParametersListener
void addDJILidarParametersListener (DJILidarParametersListener listener)
Description:
Adds the listener for lidar parameters change events.
method removeDJILidarParametersListener
void removeDJILidarParametersListener (DJILidarParametersListener listener)
Description:
Remove the listener for lidar parameters change events.
method removeAllListener
Description:
Remove all lidar parameters listeners.
Listener Method
Sampling Rate Range Change
method
method onLidarSamplingRateRangeChange
void onLidarSamplingRateRangeChange (DJILidarPointCloudSamplingRate[] newRange)
Description:
When the lidar sampling rate range is changed, the listener will receive this callback.