class DJIGimbalState
@interface DJIGimbalState : NSObject
Header: DJIGimbalState.h Inherits From: NSObject
Description:
This class provides the current state of the gimbal.
Class Members:
property yawRelativeToAircraftHeading
@property (nonatomic , readonly ) double yawRelativeToAircraftHeading
Description:
This function will return the angle between gimbal and the drone heading.
Members
property attitudeInDegrees
@property (nonatomic , readonly ) DJIGimbalAttitude attitudeInDegrees
Description:
The current gimbal attitude in degrees. Roll, pitch and yaw are 0 if the gimbal is level with the aircraft and points in the forward direction of North Pole.
See Also:
DJIGimbalAttitude
property fineTunedRoll
@property (nonatomic , readonly ) float fineTunedRoll
Description:
Returns the gimbal's roll fine-tuned value. The range for the fine-tuned value is [-10, 10] degrees. If the fine-tune value is negative, the gimbal will be fine- tuned to the specified number of degrees in the counterclockwise direction.
property fineTunedPitch
@property (nonatomic , readonly ) float fineTunedPitch
Description:
Returns the gimbal's pitch fine-tuned value. The range for the fine-tuned value is [-10, 10] degrees. If the fine-tune value is negative, the gimbal will be fine-tuned to the specified number of degrees in the downward direction. It is only supported by Spark.
property fineTunedYaw
@property (nonatomic , readonly ) float fineTunedYaw
Description:
Returns the gimbal's yaw fine-tuned value. The range for the fine-tuned value is [-10, 10] degrees. If the fine-tune value is negative, the gimbal will be fine-tuned to the specified number of degrees in the port (left) direction. Only supported by DJI Mavic Air.
property mode
@property (nonatomic , readonly ) DJIGimbalMode mode
Description:
Returns the gimbal's current work mode.
See Also:
DJIGimbalMode
Check Mobile Device Mounted
property
property isMobileDeviceMounted
@property (nonatomic , readonly ) BOOL isMobileDeviceMounted
Description:
YES
if the mobile device is mounted on the gimbal.
Check Motor Overloaded
property
property isMotorOverloaded
@property (nonatomic , readonly ) BOOL isMotorOverloaded
Description:
YES
if one of the gimbal motors is overloaded.
Calibration
Calibration Succeeded
property
property isCalibrationSuccessful
@property (nonatomic , readonly ) BOOL isCalibrationSuccessful
Description:
YES
if the gimbal calibration succeeded.
property isCalibrating
@property (nonatomic , readonly ) BOOL isCalibrating
Description:
YES
if the gimbal is calibrating.
property calibrationProgress
@property (nonatomic , readonly ) NSInteger calibrationProgress
Description:
Current progress (percentage) for calibration.
Reach Limit
Pitch Reach Limit
property
property isPitchAtStop
@property (nonatomic , readonly ) BOOL isPitchAtStop
Description:
YES
if the gimbal's pitch value is at its limit.
property isRollAtStop
@property (nonatomic , readonly ) BOOL isRollAtStop
Description:
YES
if the gimbal's roll value is at its limit.
property isYawAtStop
@property (nonatomic , readonly ) BOOL isYawAtStop
Description:
YES
if the gimbal's yaw value is at its limit.
Balance
Testing Payload Balance
property
property isBalanceTesting
@property (nonatomic , readonly ) BOOL isBalanceTesting
Description:
YES
if the gimbal is currently testing payload balance.
Pitch Axis Balance Test Result
property
property pitchBalanceTestResult
@property (nonatomic , readonly ) DJIGimbalBalanceTestResult pitchBalanceTestResult
Description:
Returns the pitch axis balance test result.
See Also:
DJIGimbalBalanceTestResult
Roll Axis Balance Test Result
property
property rollBalanceTestResult
@property (nonatomic , readonly ) DJIGimbalBalanceTestResult rollBalanceTestResult
Description:
Returns the roll axis balance test result.
See Also:
DJIGimbalBalanceTestResult
Yaw Axis Balance Test Result
property
property yawBalanceTestResult
@property (nonatomic , readonly ) DJIGimbalBalanceTestResult yawBalanceTestResult
Description:
Returns the yaw axis balance test result.
See Also:
DJIGimbalBalanceTestResult
Gimbal Balance State
property
property balanceState
@property (nonatomic , readonly ) DJIGimbalBalanceState balanceState
Description:
Returns the balance status of the gimbal.
See Also:
DJIGimbalBalanceState
property isMountedUpwards
@property (nonatomic , readonly ) BOOL isMountedUpwards
Description:
YES
if the gimbal is mounted upwards on the aircraft. It is only supported by M210 and M210 RTK.