DJIGoToStep

@interface DJIGoToStep : DJIMissionStep

This class represents a go-to step for a custom mission. By creating an object of this class and adding it to a custom mission, the aircraft will go to the specified location during the custom mission execution.

  • Flight speed of the aircraft when going to the target location. Default is 8 m/s.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float flightSpeed;
  • Go to the specified coordinate from the current aircraft position.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithCoordinate:(CLLocationCoordinate2D)coordinate;

    Parameters

    coordinate

    Target coordinate.

    Return Value

    Instance of DJIGoToStep.

  • Go to the specified altitude from the current aircraft position.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithAltitude:(float)altitude;

    Parameters

    altitude

    Target altitude in meters.

    Return Value

    Instance of DJIGoToStep.

  • Go to the specified coordinate and altitude (in meters) from the current aircraft position.

    Declaration

    Objective-C

    - (instancetype _Nullable)initWithCoordinate:(CLLocationCoordinate2D)coordinate
                                        altitude:(float)altitude;

    Parameters

    coordinate

    Target coordinate.

    altitude

    Target altitude in meters.

    Return Value

    Instance of DJIGoToStep.