[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[dji-ios] 42 Components-Missions-Waypoint

"
Waypoint
	DJIWaypoint
	DJIWaypointMissionTypes
	DJIWaypointMission
	DJIWaypointMissionOperator
	DJIWaypointMission+DJIMissionControlTimelineElement
"

DJIWaypointAction buildNumberAccessors: #(
	actionType actionParam
)!

! DJIWaypointAction class methodsFor: #instantiation !
withActionType: type param: param
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithActionType: type param: param)! !

DJIWaypoint buildTypedAccessors: #(
	#(coordinate CLLocationCoordinate2D)
)!
DJIWaypoint buildNumberGetters: #(
	altitude heading
	actionRepeatTimes
	actionTimeoutInSeconds
	cornerRadiusInMeters
	turnMode
	gimbalPitch
	speed
	shootPhotoTimeInterval
	shootPhotoDistanceInterval
)!
DJIWaypoint buildGetters: #(
	waypointActions
)!
DJIWaypoint buildFunctions: #(
	#(addAction: #(_action))
	#(insertAction:atIndex: #(_action index))
	#(removeAction: #(_action))
	#(removeActionAtIndex: #(index))
	removeAllActions
)!

! DJIWaypoint class methodsFor: #instantiation !
withCoordinate: coordinate
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithCoordinate: coordinate json)! !
 
DJIWaypointUploadProgress buildBooleanGetters: #(
	isWaypointSummaryUploaded
)!
DJIWaypointUploadProgress buildNumberGetters: #(
	uploadedWaypointIndex
	totalWaypointCount
)!

DJIWaypointDownloadProgress buildNumberGetters: #(
	downloadedWaypointIndex
	totalWaypointCount
)!

DJIWaypointExecutionProgress buildNumberGetters: #(
	execState
	targetWaypointIndex
)!
DJIWaypointExecutionProgress buildBooleanGetters: #(
	isWaypointReached
)!

DJIWaypointMission buildBooleanAccessors: #(
	isComplete
	exitMissionOnRCSignalLost
	rotateGimbalPitch
)!
DJIWaypointMission buildNumberAccessors: #(
	waypointCount
	maxFlightSpeed
	autoFlightSpeed
	repeatTimes
	finishedAction
	headingMode
	flightPathMode
	gotoFirstWaypointMode
)!
DJIWaypointMission buildTypedAccessors: #(
	#(pointOfInterest CLLocationCoordinate2D)
)!
DJIWaypointMission buildFunctions: #(
	#(checkParameters NSError)
	#(waypointAtIndex: #(index) DJIWaypoint)
	#(allWaypoints 'NSArray[DJIWaypoint]')
	#(mutableCopy DJIMutableWaypointMission)
)!

! DJIWaypointMission class methodsFor: #instantiation !
withMission: mission
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithMission: mission json)! !

DJIMutableWaypointMission buildFunctions: #(
	#(addWaypoint: #(_waypoint))
	#(addWaypoints: #(#(waypoints handles)))
	#(removeWaypoint: #(_waypoint))
	#(removeWaypointAtIndex: #(index))
	removeAllWaypoints
)!

DJIWaypointMissionExecutionEvent buildNumberGetters: #(
	previousState
	currentState
)!
DJIWaypointMissionExecutionEvent buildTypedGetters: #(
	#(progress DJIWaypointExecutionProgress)
	#(error NSError)
)!

DJIWaypointMissionUploadEvent buildNumberGetters: #(
	previousState
	currentState
)!
DJIWaypointMissionUploadEvent buildTypedGetters: #(
	#(progress DJIWaypointUploadProgress)
	#(error NSError)
)!

DJIWaypointMissionDownloadEvent buildTypedGetters: #(
	#(progress DJIWaypointDownloadProgress)
	#(error NSError)
)!

DJIWaypointMissionOperator buildTypedGetters: #(
	#(loadedMission DJIWaypointMission)
	#(currentState DJIWaypointMissionState)
	#(latestExecutionProgress DJIWaypointExecutionProgress)
	#(latestUploadProgress DJIWaypointUploadProgress)
)!
DJIWaypointMissionOperator buildFunctions: #(
	#(loadMission: #(_mission) NSError)
	#(addListenerToUploadEvent:withQueue:andBlock: #(_listener _queue _block))
	#(addListenerToDownloadEvent:withQueue:andBlock: #(_listener _queue _block))
	#(addListenerToExecutionEvent:withQueue:andBlock: #(_listener _queue _block))
	#(addListenerToStarted:withQueue:andBlock: #(_listener _queue _block))
	#(addListenerToFinished:withQueue:andBlock: #(_listener _queue _block))
	#(removeListener: #(listener))
	#(removeListenerOfUploadEvents: #(listener))
	#(removeListenerOfDownloadEvents: #(listener))
	#(removeListenerOfExecutionEvents: #(listener))
	#(removeListenerOfStarted: #(listener))
	#(removeListenerOfFinished: #(listener))
	removeAllListeners
	#(uploadMissionWithCompletion: #(_completion))
	#(downloadMissionWithCompletion: #(_completion))
	#(startMissionWithCompletion: #(_completion))
	#(pauseMissionWithCompletion: #(_completion))
	#(resumeMissionWithCompletion: #(_completion))
	#(stopMissionWithCompletion: #(_completion))
	#(setAutoFlightSpeed:withCompletion: #(speed _completion))
)!