class IRadarManager
Package: dji.v5.manager.interfaces
Description:
Class to manager radar, which is used to turn on and off the radar obstacle avoidance switch and obtain obstacle ranging data. Supported since MSDK 5.1.0
Class Members:
method setObstacleAvoidanceEnabled
void setObstacleAvoidanceEnabled (boolean isEnabled, @NonNull PerceptionDirection direction, CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Turn on or turn off the sub switch of radar obstacle avoidance. Only when the main switch setOverallObstacleAvoidanceEnabled
is enabled, the sub switch can be enabled. Millimeter-wave radar does not support downward obstacle avoidance. Supported since MSDK 5.1.0
boolean isEnabled true
means that turn on the sub switch of radar obstacle avoidance.@NonNull PerceptionDirection direction Direction of the sub switch of radar obstacle avoidance. CommonCallbacks .CompletionCallback callback Return the callback of execution result.
method getObstacleAvoidanceEnabled
void getObstacleAvoidanceEnabled (@NonNull PerceptionDirection direction, @NonNull CommonCallbacks.CompletionCallbackWithParam<Boolean> callback)
Package: dji.v5.manager.interfaces
Description:
Return whether to turn on the sub switch of radar obstacle avoidance. Supported since MSDK 5.1.0
@NonNull PerceptionDirection direction Direction of the sub switch of radar obstacle avoidance. @NonNull CommonCallbacks .CompletionCallbackWithParam<Boolean> callback Return the callback of execution result.