DJI Mobile SDK Documentation

      class WaypointAction

      @EXClassNullAway
      class WaypointAction
      Package:dji.common.mission.waypoint
      Description:

      This class represents a waypoint action for Waypoint. It determines what action is performed when the aircraft reaches the corresponding waypoint.

      Class Members:
      Action Type
      property
      property actionType
      WaypointActionType actionType
      Package:dji.common.mission.waypoint
      Description:

      Waypoint action of type WaypointActionType the aircraft will execute this action once the aircraft reaches the waypoint. All possible actions are defined in the WaypointActionType enum.

      See Also:

      WaypointActionType

      Action Param
      property
      property actionParam
      int actionParam = 0
      Package:dji.common.mission.waypoint
      Description:

      Action parameter for a waypoint action. See enum WaypointAction for details on which actions use actionParam.

      See Also:

      actionParam

      Init With Action Type And Param
      method
      method WaypointAction
      WaypointAction(WaypointActionType actionType, int actionParam)
      Package:dji.common.mission.waypoint
      Description:

      Initialize the class with a specific action type and corresponding parameter.

      Input Parameters:
      WaypointActionType actionTypeA DJIWaypointActionType object.
      int actionParamAction parameter of a waypoint action.
      enum WaypointActionType
      @EXClassNullAway
      enum WaypointActionType
      Package:dji.common.mission.waypoint
      Description:

      Waypoint action types.

      Enum Members:
      STAYKeeps the aircraft at the waypoint's location. The actionParam parameter will determine how much time in milliseconds the aircraft will stay at the location with range of [0, 32767] milliseconds.
      START_TAKE_PHOTOStarts to shoot a photo. The actionParam for the waypoint action will be ignored. The maximum time set to execute this waypoint action is 6 seconds. If the time while executing the waypoint action goes above 6 seconds, the aircraft will stop executing the waypoint action and will move on to the next waypoint action, if one exists.
      START_RECORDStarts recording. The actionParam for the waypoint action will be ignored. The maximum time set to execute this waypoint action is 6 seconds. If the time while executing the waypoint action goes above 6 seconds (e.g. the camera is not present) the aircraft will stop executing the waypoint action and will move on to the next waypoint action, if one exists.
      STOP_RECORDStops recording. The actionParam for the waypoint action will be ignored. The maximum time set to execute this waypoint action is 6 seconds. If the time while executing the waypoint action goes above 6 seconds (e.g. the camera is not present) the aircraft will stop executing the waypoint action and will move on to the next waypoint action, if one exists.
      ROTATE_AIRCRAFTRotates the aircraft's yaw. The rotation direction is determined by the waypoint's turnMode property. The actionParam value must be in the range of [-180, 180] degrees.
      GIMBAL_PITCHRotates the gimbal's pitch. The range of the pitch angle should be gotten from ADJUST_PITCH or ADJUST_PITCH_UPWARDS.
      Class Members: