class DJIGimbalAttitudeAction
@interface DJIGimbalAttitudeAction : DJIMissionAction
Description:
This class represents a gimbal movement action used as an element in a Timeline mission. By creating an object of this class and adding it to Mission Control's Timeline, the camera's gimbal will move to the specified attitude when the Timeline reaches the action.
Class Members:
method initWithAttitude
- (instancetype _Nullable)initWithAttitude:(DJIGimbalAttitude)attitude
Header: DJIGimbalAttitudeAction.h
Description:
Initialize instance with gimbal target attitude. The value of DJIGimbalMode
is DJIGimbalModeUnknown
.
Return:
method initWithAttitude:gimbalMode
- (instancetype _Nullable)initWithAttitude:(DJIGimbalAttitude)attitude gimbalMode:(DJIGimbalMode)gimbalMode
Header: DJIGimbalAttitudeAction.h
Description:
Initialize instance with gimbal target attitude and gimbal mode.
Return:
property completionTime
@property (nonatomic , assign ) double completionTime
Header: DJIGimbalAttitudeAction.h
Description:
Completion time, in seconds, for the gimbal to go to the target attitude from current attitude. Default is 1 second.
property gimbalMode
@property (nonatomic , assign ) DJIGimbalMode gimbalMode
Header: DJIGimbalAttitudeAction.h
Description:
Gimbal mode to switch to when executing the action. When it is DJIGimbalModeUnknown
, the action will not change the gimbal mode.
See Also:
DJIGimbalMode
property targetAttitude
@property (nonatomic , readonly ) DJIGimbalAttitude targetAttitude
Header: DJIGimbalAttitudeAction.h
Description:
Target gimbal attitude.
See Also:
DJIGimbalAttitude
const DJIGimbalAttitudeActionErrorDomain
extern const NSErrorDomain DJIGimbalAttitudeActionErrorDomain
Header: DJIGimbalAttitudeAction.h
Description:
The Error domain for DJIGimbalAttitudeAction specific Errors.
enum DJIGimbalAttitudeActionError
typedef NS_ENUM (NSInteger , DJIGimbalAttitudeActionError)
Header: DJIGimbalAttitudeAction.h
Description:
A list of all errors relative to the gimbal attitude action.
Enum Members:
DJIGimbalAttitudeActionErrorUnknownDefault error if nothing else matches. DJIGimbalAttitudeActionErrorYawOutsideMaxCapabilitiesYaw value passed is beyond the max capabilities of the gimbal. DJIGimbalAttitudeActionErrorPitchOutsideMaxCapabilitiesPitch value passed is beyond the max capabilities of the gimbal. DJIGimbalAttitudeActionErrorCompletionTimeInvalidCompletion Time value passed is invalid (less than 0).