DJI Mobile SDK Documentation

      class DJITapFlyMission

      @interface DJITapFlyMission : DJIMission
      Header:DJITapFlyMission.h
      Inherits From:DJIMission
      Description:

      A TapFly Mission is initialized with a position target from the live video stream. The 3D direction of the coordinate is calculated, and the aircraft will proceed to fly in that direction. The aircraft can automatically avoid obstacles when the scene is sufficiently illuminated (more than 300 lux but less than 10,000 lux). The aircraft will stop flying in the direction if it reaches its radius limitation, the mission is stopped, the user pulls back on the pitch stick or if it comes to an obstacle it cannot bypass. The Remote Controller yaw stick can be used to adjust the heading of the aircraft during mission execution, which also adjusts the direction of flight to the new yaw. Using any other stick controls will cancel the mission.

      Class Members:
      Image Location
      property
      property imageLocationToCalculateDirection
      @property(nonatomic, assign) CGPoint imageLocationToCalculateDirection
      Header:DJITapFlyMission.h
      Description:

      The image point from the video feed where the vision system should calculate the flight direction from. The image point is normalized to [0,1] where (0,0) is the top left corner and (1,1) is the bottom right.

      Tap Fly Mode
      property
      property tapFlyMode
      @property(nonatomic) DJITapFlyMode tapFlyMode
      Header:DJITapFlyMission.h
      Description:

      TapFly Mission mode. Defaults to DJITapFlyModeForward. Additional modes only supported by the Phantom 4 Pro.

      See Also:

      DJITapFlyMode

      enum DJIBypassDirection
      typedef NS_ENUM (NSInteger, DJIBypassDirection)
      Header:DJITapFlyMissionTypes.h
      Description:

      Direction aircraft is moving around or bypassing an obstacle in.

      Enum Members:
      DJIBypassDirectionNoneFlying normally, no obstacle to be avoided.
      DJIBypassDirectionOverAvoiding the obstacle by going over the top of it.
      DJIBypassDirectionLeftAvoiding the obstacle by going to the left of it.
      DJIBypassDirectionRightAvoiding the obstacle by going to the right of it.
      DJIBypassDirectionUnknownUnknown obstacle avoidance direction
      enum DJITapFlyMode
      typedef NS_ENUM (NSInteger, DJITapFlyMode)
      Header:DJITapFlyMissionTypes.h
      Description:

      Different modes of the TapFly Mission. Defaults to DJITapFlyModeForward, set to others to enable the feature.

      Enum Members:
      DJITapFlyModeForwardAircraft will fly towards the target. Forward Obstacle Sensing System is active.
      DJITapFlyModeBackwardAircraft will fly in the opposite direction from the target. Backward Obstacle Sensing System is active.
      DJITapFlyModeFreeAircraft will fly towards the target. User can control the heading by remote controller's stick. Obstacle Sensing Systems may fail to work when aircraft is flying sideward.
      DJITapFlyModeUnknownThe TapFly mode is unknown.