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

api[dji-ios] 41 Components-Missions-MissionActions

"
Mission Actions
	DJIMissionAction
	DJIAircraftYawAction
	DJIGimbalAttitudeAction
	DJIGoHomeAction
	DJIGoToAction
	DJIRecordVideoAction
	DJIShootPhotoAction
	DJITakeOffAction
	DJIHotpointAction
"

DJIMissionAction buildBooleanGetters: #(
	isRunning
)!
DJIMissionAction buildFunctions: #(
	"<DJIMissionControlTimelineElement>"
	willRun
	triggers"NSArray[DJIMissionTrigger]"
	run
	isPausable
	pauseRun
	resumeRun
	stopRun
	didRun
	#(checkValidity NSError)
)! 

! DJIAircraftYawAction class methodsFor: #instantiation !
withRelativeAngle: angle andAngularVelocity: velocity
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithRelativeAngle: angle
		 andAngularVelocity: velocity)! !

DJIGimbalAttitudeAction buildNumberAccessors: #(
	completionTime
)!

"ToDo -
@property(nonatomic, readonly) DJIGimbalAttitude targetAttitude;
"

! DJIGimbalAttitudeAction class methodsFor: #instantiation !
withAttitude: attitude
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithAttitude: attitude json)! !

DJIGoHomeAction buildBooleanAccessors: #(
	autoConfirmLandingEnabled
)!

DJIGoToAction buildNumberAccessors: #(
	flightSpeed
)!

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

	^self @ (self nativeClass
		#instanceWithCoordinate: coordinate json)! !

! DJIGoToAction class methodsFor: #instantiation !
withAltitude: altitude
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithAltitude: altitude)! !

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

	^self @ (self nativeClass
		#instanceWithCoordinate: coordinate json altitude: altitude)! !


DJIMissionAction
	subclass: #DJIRecordVideoAction
	category: #MissionActions!

! DJIRecordVideoAction class methodsFor: #instantiation !
withDuration: duration
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithDuration: duration)! !

! DJIRecordVideoAction class methodsFor: #instantiation !
withStartRecordVideo
	" Returns an instance of the receiver. "

	^self @ self nativeClass instanceWithStartRecordVideo! !

! DJIRecordVideoAction class methodsFor: #instantiation !
withStopRecordVideo
	" Returns an instance of the receiver. "

	^self @ self nativeClass instanceWithStopRecordVideo! !


DJIMissionAction
	subclass: #DJIShootPhotoAction
	category: #MissionActions!

! DJIShootPhotoAction class methodsFor: #instantiation !
withSingleShootPhoto
	" Returns an instance of the receiver. "

	^self @ self nativeClass instanceWithSingleShootPhoto! !

! DJIShootPhotoAction class methodsFor: #instantiation !
withPhotoCount: count timeInterval: interval
	" Returns an instance of the receiver. "

	^self @ (self nativeClass
		#instanceWithPhotoCount: count timeInterval: interval)! !


DJIMissionAction
	subclass: #DJITakeOffAction
	category: #MissionActions!


DJIMissionAction
	subclass: #DJIHotpointAction
	category: #MissionActions!

DJIHotpointAction buildNumberAccessors: #(
	surroundingAngle
)!

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

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

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

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