DJI Mobile SDK Documentation

      class DJIWaypointAction

      @interface DJIWaypointAction : NSObject
      Header:DJIWaypoint.h
      Inherits From:NSObject
      Description:

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

      Class Members:
      Action Type
      property
      property actionType
      @property(nonatomic, assign) DJIWaypointActionType actionType
      Header:DJIWaypoint.h
      Description:

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

      See Also:

      DJIWaypointActionType

      Action Param
      property
      property actionParam
      @property(nonatomic, assign) int16_t actionParam
      Header:DJIWaypoint.h
      Description:

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

      Init With Action Type And Param
      method
      method initWithActionType:param
      - (id)initWithActionType:(DJIWaypointActionType)type param:(int16_t)param
      Header:DJIWaypoint.h
      Description:

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

      Input Parameters:
      DJIWaypointActionType typeAn enum value of DJIWaypointActionType.
      int16_t paramcorresponding parameter for action type.
      Return:
      idA DJIWaypointAction object initialized with DJIWaypointActionType Enum and an int16_t value of param.
      enum DJIWaypointActionType
      typedef NS_ENUM (NSUInteger, DJIWaypointActionType)
      Header:DJIWaypoint.h
      Description:

      Waypoint action types.

      Enum Members:
      DJIWaypointActionTypeStayKeeps 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.
      DJIWaypointActionTypeShootPhotoStarts 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.
      DJIWaypointActionTypeStartRecordStarts 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.
      DJIWaypointActionTypeStopRecordStops 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.
      DJIWaypointActionTypeRotateAircraftRotates 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.
      DJIWaypointActionTypeRotateGimbalPitchRotates the gimbal's pitch. The actionParam value should be in range [-90, 0] degrees.