DJIWaypointAction

@interface DJIWaypointAction : NSObject

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

  • 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.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) DJIWaypointActionType actionType;
  • Action parameter for a waypoint action. See enum DJIWaypointAction for details on which actions use actionParam.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) int16_t actionParam;
  • Initialize the class with a specific action type and corresponding parameter.

    Declaration

    Objective-C

    - (nonnull id)initWithActionType:(DJIWaypointActionType)type
                               param:(int16_t)param;