class DJIFollowMeMissionOperator
@interface DJIFollowMeMissionOperator : NSObject
Header: DJIFollowMeMissionOperator.h Inherits From: NSObject
Description:
The follow me mission operator is the only object that controls, runs and monitors FollowMe Missions. It can be accessed from DJIMissionControl
.
Class Members:
property currentState
@property (readonly , nonatomic ) DJIFollowMeMissionState currentState
Header: DJIFollowMeMissionOperator.h
Description:
The current state of the executing Follow Me mission.
See Also:
DJIFollowMeMissionState
method addListenerToEvents:withQueue:andBlock
- (void )addListenerToEvents:(id )listener withQueue:(nullable dispatch_queue_t )queue andBlock:(DJIFollowMeMissionOperatorEventBlock)block
Header: DJIFollowMeMissionOperator.h
Description:
Adds a listener object to the listener pool that will listen to all events.
method addListenerToStarted:withQueue:andBlock
- (void )addListenerToStarted:(id )listener withQueue:(nullable dispatch_queue_t )queue andBlock:(DJIFollowMeMissionOperatorSimpleEventBlock)block
Header: DJIFollowMeMissionOperator.h
Description:
Adds listener to receive the notification when a Follow Me mission is started.
id listener Listener that will listen for mission start. nullable dispatch_queue_t queue The dispatch queue that block
will be called on. DJIFollowMeMissionOperatorSimpleEventBlock block Block to be called when mission starts.
method addListenerToFinished:withQueue:andBlock
- (void )addListenerToFinished:(id )listener withQueue:(nullable dispatch_queue_t )queue andBlock:(DJICompletionBlock)block
Header: DJIFollowMeMissionOperator.h
Description:
Adds listener to receive the notification when a Follow Me mission has finished.
id listener Listener that will listen for mission end. nullable dispatch_queue_t queue The dispatch queue that block
will be called on. DJICompletionBlock block Block to be called when mission ends. If the mission is interrupted with an error, the error will be passed to the block.
method removeListener
- (void )removeListener:(id )listener
Header: DJIFollowMeMissionOperator.h
Description:
Removes listener. If the listener is listening to more than one event, it will be removed from listening for all events.
id listener Listener to be removed.
method removeListenerOfEvents
- (void )removeListenerOfEvents:(id )listener
Header: DJIFollowMeMissionOperator.h
Description:
Removes listener from listener pool for specific event.
id listener Listener to be removed.
method removeListenerOfStarted
- (void )removeListenerOfStarted:(id )listener
Header: DJIFollowMeMissionOperator.h
Description:
Removes listener from listener pool for specific start mission events.
id listener Listener to be removed.
method removeListenerOfFinished
- (void )removeListenerOfFinished:(id )listener
Header: DJIFollowMeMissionOperator.h
Description:
Removes listener from listener pool for specific finish mission events.
id listener Listener to be removed.
method removeAllListeners
- (void )removeAllListeners
Header: DJIFollowMeMissionOperator.h
Description:
Remove all listeners.
method updateFollowMeCoordinate
-(nullable NSError *)updateFollowMeCoordinate:(CLLocationCoordinate2D )coordinate
Header: DJIFollowMeMissionOperator.h
Description:
Update the Follow Me mission's target location to follow.
CLLocationCoordinate2D coordinate A CLLocationCoordinate2D struct of the following target.
Return:
nullable NSError * The possible error if the functionality fails.
method followMeCoordinate
-(CLLocationCoordinate2D )followMeCoordinate
Header: DJIFollowMeMissionOperator.h
Description:
The latest Follow Me coordinate. The operator will send the updated Follow Me coordinate to the aircraft at a fixed frequency in order to maintain the mission heart-beat. The value is only valid when the currentState
is DJIFollowMeMissionStateExecuting
.
Return:
CLLocationCoordinate2D The latest Follow Me mission target location.
typedef block DJIFollowMeMissionOperatorEventBlock
typedef void (^DJIFollowMeMissionOperatorEventBlock)(DJIFollowMeMissionEvent *event)
Header: DJIFollowMeMissionOperator.h
Description:
Block to receive the Follow Me operator event.
typedef block DJIFollowMeMissionOperatorSimpleEventBlock
typedef void (^DJIFollowMeMissionOperatorSimpleEventBlock)()
Header: DJIFollowMeMissionOperator.h
Description:
An simple event block for follow me mission.