DJI Mobile SDK Documentation

      class DJIRadar

      @interface DJIRadar : DJIBaseComponent
      Header:DJIRadar.h
      Inherits From:DJIBaseComponent
      Description:

      This class contains components of the Radar and provides methods to change its settings.

      Class Members:

      State Updates

      General
      property
      property delegate
      @property(nonatomic, weak) id<DJIRadarDelegate> delegate
      Header:DJIRadar.h
      Description:

      Delegate that receives the information sent by the Radar.


      Protocol Method

      method radar:didUpdateRadarPerceptionInformation
      - (void)radar:(DJIRadar *)radar didUpdateRadarPerceptionInformation:(DJIFlightAssistantPerceptionInformation *)information
      Header:DJIRadar.h
      Description:

      Updates the radar perception information. It is supported only by Matrice 300 RTK.

      Input Parameters:
      SOURCE_DIFFERENT aradarRadar that has the updated state.
      DJIFlightAssistantPerceptionInformation * informationThe Radar Perception information.
      method setUpwardRadarObstacleAvoidanceEnabled:withCompletion
      - (void)setUpwardRadarObstacleAvoidanceEnabled:(BOOL)enabled withCompletion:(DJICompletionBlock)completion
      Header:DJIRadar.h
      Description:

      Sets upward radar obstacle avoidance status (enabled/disabled).

      Input Parameters:
      BOOL enabledYES to enabled the upward radar obstacle avoidance.
      DJICompletionBlock completionThe completion block that receives the execution result.
      method getUpwardRadarObstacleAvoidanceEnabledWithCompletion
      - (void)getUpwardRadarObstacleAvoidanceEnabledWithCompletion:(void (^_Nonnull)(BOOL enabled, NSError *_Nullable error))completion
      Header:DJIRadar.h
      Description:

      Gets upward radar obstacle avoidance status (enabled/disabled).

      Input Parameters:
      BOOL enabledYES if upward radar obstacle avoidance is enabled.
      void (^_Nonnull)(BOOL enabled, NSError *_Nullable error) completionThe completion block that receives the execution result.
      method setHorizontalRadarObstacleAvoidanceEnabled:withCompletion
      - (void)setHorizontalRadarObstacleAvoidanceEnabled:(BOOL)enabled withCompletion:(DJICompletionBlock)completion
      Header:DJIRadar.h
      Description:

      Sets horizontal radar obstacle avoidance status (enabled/disabled).

      Input Parameters:
      BOOL enabledYES to enabled the horizontal radar obstacle avoidance.
      DJICompletionBlock completionThe completion block that receives the execution result.
      method getHorizontalRadarObstacleAvoidanceEnabledWithCompletion
      - (void)getHorizontalRadarObstacleAvoidanceEnabledWithCompletion:(void (^_Nonnull)(BOOL enabled, NSError *_Nullable error))completion
      Header:DJIRadar.h
      Description:

      Gets upward horizontal obstacle avoidance status (enabled/disabled).

      Input Parameters:
      BOOL enabledYES if horizontal radar obstacle avoidance is enabled.
      void (^_Nonnull)(BOOL enabled, NSError *_Nullable error) completionThe completion block that receives the execution result.