DJIFollowMeMission

@interface DJIFollowMeMission : DJIMission

The class represents a follow me mission. In a follow me mission, the aircraft is programmed to track and maintain a constant distant relative to some object, such as a person or a moving vehicle. You can use it to make the aircraft follow a GPS device, such as a remote controller with a GPS signal or a mobile device.

It is not supported by Mavic Pro when using WiFi connection.

  • User’s initial coordinate.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        CLLocationCoordinate2D followMeCoordinate;
  • User’s initial altitude (above sea level). If not using altitude follow, set this property to zero.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) float followMeAltitude;
  • The aircraft’s heading during the mission.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) DJIFollowMeHeading heading;
  • Updates the coordinate that the aircraft will follow. Once the follow me mission is initialized, this method is used to continuously update the coordinate to follow. If the aircraft doesn’t receive an update within 6 seconds, it will hover in position until the next update arrives. This is the only property or method in this class that can communicate with the aircraft during a mission. All other properties and methods are used offline to prepare the mission which is then uploaded to the aircraft.

    Declaration

    Objective-C

    + (void)updateFollowMeCoordinate:(CLLocationCoordinate2D)coordinate
                      withCompletion:(DJICompletionBlock)completion;

    Parameters

    coordinate

    Coordinate the aircraft will follow. Should be within 200m horizontal distance of the current location.

    completion

    Completion block.

  • Updates the coordinate that the aircraft will follow with a customized altitude.

    Declaration

    Objective-C

    + (void)updateFollowMeCoordinate:(CLLocationCoordinate2D)coordinate
                            altitude:(float)altitude
                      withCompletion:(DJICompletionBlock)completion;

    Parameters

    coordinate

    Coordinate the aircraft will follow. Should be within 200m horizontal distance of the current location.

    altitude

    The following altitude.

    completion

    Completion block.