DJI Mobile SDK Documentation

      class FlyToTarget

      class FlyToTarget
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Target of Fly-To task.

      Supported since MSDK 5.14.0

      Class Members:

      Members

      method getTargetLocation
      LocationCoordinate3D getTargetLocation()
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Gets the location of the target point.

      Return:
      LocationCoordinate3DReturns the location of the target point.
      method setTargetLocation
      void setTargetLocation(LocationCoordinate3D targetLocation)
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Sets the location of the target point.

      Input Parameters:
      LocationCoordinate3D targetLocationThe location of the target point.
      method getSecurityTakeoffHeight
      int getSecurityTakeoffHeight()
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Gets the aircraft's takeoff altitude.

      Return:
      intReturns the aircraft's takeoff altitude.
      method setSecurityTakeoffHeight
      void setSecurityTakeoffHeight(Integer securityTakeoffHeight)
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Sets the take-off altitude of the aircraft.

      Input Parameters:
      Integer securityTakeoffHeightThe take-off altitude of the aircraft.
      method getMaxSpeed
      int getMaxSpeed()
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Gets the flight speed towards the target point.

      Return:
      intReturns the flight speed towards the target point.
      method setMaxSpeed
      void setMaxSpeed(Integer maxSpeed)
      Package:dji.v5.manager.intelligent.flyto
      Description:

      Sets the flight speed towards the target point.

      Input Parameters:
      Integer maxSpeedThe flight speed towards the target point.