DJI Mobile SDK Documentation

      class TapFlyMission

      @EXClassNullAway
      class TapFlyMission
      Package:dji.common.mission.tapfly
      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 target
      PointF target
      Package:dji.common.mission.tapfly
      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
      TapFlyMode tapFlyMode
      Package:dji.common.mission.tapfly
      Description:

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

      See Also:

      TapFlyMode

      property isHorizontalObstacleAvoidanceEnabled
      boolean isHorizontalObstacleAvoidanceEnabled
      Package:dji.common.mission.tapfly
      Description:

      true to enable horizontal obstacle avoidance.

      Target
      property
      property speed
      float speed
      Package:dji.common.mission.tapfly
      Description:

      Speed in m/s during tap fly mission.

      class
      enum BypassDirection
      @EXClassNullAway
      enum BypassDirection
      Package:dji.common.mission.tapfly
      Description:

      Direction aircraft is moving around or bypassing an obstacle in.

      Enum Members:
      NONEFlying normally, no obstacle to be avoided.
      OVERAvoiding the obstacle by going over the top of it.
      LEFTAvoiding the obstacle by going to the left of it.
      RIGHTAvoiding the obstacle by going to the right of it.
      UNKNOWNUnknown obstacle avoidance direction
      Class Members:
      enum TapFlyMode
      @EXClassNullAway
      enum TapFlyMode
      Package:dji.common.mission.tapfly
      Description:

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

      Enum Members:
      FORWARDAircraft will fly towards the target. Forward Obstacle Sensing System is active.
      BACKWARDAircraft will fly in the opposite direction from the target. Backward Obstacle Sensing System is active.
      FREEAircraft 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.
      UNKNOWNThe TapFly mode is unknown.
      Class Members: