[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
api[dji-ios] 34 Components-Gimbal
"
Gimbal
DJIGimbal
DJIGimbalState
DJIGimbalMovementSettings
"
DJIGimbal buildTypedAccessors: #(
#(delegate NSObject)
)!
DJIGimbal buildFunctions: #(
#(setMode:withCompletion: #(mode _completion))
#(rotateWithRotation:completion: #(_rotation _completion))
#(resetWithCompletion: #(_completion))
#(startCalibrationWithCompletion: #(_completion))
#(fineTuneRollInDegrees:withCompletion: #(offset _completion))
#(startBalanceTestWithCompletion: #(_completion))
#(setMovementSettingsProfile:withCompletion: #(_profile _completion))
#(getMovementSettingsProfileWithCompletion: #(_completion))
#(restoreFactorySettings: #(_completion))
#(setPitchRangeExtensionEnabled:withCompletion: #(isEnabled _completion))
#(getPitchRangeExtensionEnabledWithCompletion: #(_completion))
#(applyMotorControlPreset:withCompletion: #(preset _completion))
#(setMotorControlStiffness:onAxis:withCompletion: #(stiffness _axis _completion))
#(getMotorControlStiffnessOnAxis:withCompletion: #(_axis _completion))
#(setMotorControlStrength:onAxis:withCompletion: #(strength _axis _completion))
#(getMotorControlStrengthOnAxis:withCompletion: #(_axis _completion))
#(setMotorControlGyroFilteringFactor:onAxis:withCompletion: #(filteringFactor _axis _completion))
#(getMotorControlGyroFilteringFactorOnAxis:withCompletion: #(_axis _completion))
#(setMotorControlPreControl:onAxis:withCompletion: #(preControl _axis _completion))
#(getMotorControlPreControlOnAxis:withCompletion: #(_axis _completion))
#(setControllerDeadband:onAxis:withCompletion: #(deadband _axis _completion))
#(getControllerDeadbandOnAxis:withCompletion: #(_axis _completion))
#(setControllerSpeedCoefficient:onAxis:withCompletion: #(speedCoefficient _axis _completion))
#(getControllerSpeedCoefficientOnAxis:withCompletion: #(_axis _completion))
#(setControllerSmoothingFactor:onAxis:withCompletion: #(smoothingFactor _axis _completion))
#(getControllerSmoothingFactorOnAxis:withCompletion: #(_axis _completion))
#(setSmoothTrackEnabled:onAxis:withCompletion: #(enabled _axis _completion))
#(getSmoothTrackEnabledOnAxis:withCompletion: #(_axis _completion))
#(setSmoothTrackSpeed:onAxis:withCompletion: #(speed _axis _completion))
#(getSmoothTrackSpeedOnAxis:withCompletion: #(_axis _completion))
#(setSmoothTrackDeadband:onAxis:withCompletion: #(deadband _axis _completion))
#(getSmoothTrackDeadbandOnAxis:withCompletion: #(_axis _completion))
#(setSmoothTrackAcceleration:onAxis:withCompletion: #(acceleration _axis _completion))
#(getSmoothTrackAccelerationOnAxis:withCompletion: #(_axis _completion))
#(setEndpoint:forDirection:withCompletion: #(endpoint _direction _completion))
#(getEndpointForDirection:withCompletion: #(_direction _completion))
#(setMotorEnabled:withCompletion: #(enabled _completion))
#(getMotorEnabledWithCompletion: #(_completion))
#(toggleSelfieWithCompletion: #(_completion))
#(setInvertedControlEnabled:onAxis:withCompletion: #(enabled _axis _completion))
#(getInvertedControlEnabledOnAxis:withCompletion: #(_axis _completion))
)!
! DJIGimbal methodsFor: #capabilities !
capabilities
" Return the capabilities of the receiver. "
| result |
result := PoolDictionary @ (self handle basicAt: #capabilities).
result keysDo: [:key| result at: key put: DJIParamCapability @ (result at: key) ].
^result ! !
! DJIGimbal methodsFor: #capabilities !
supportedCapabilities
" Return the supported capabilities of the receiver. "
^self capabilities select: [:each| each isSupported ] ! !
DJIGimbalState buildNumberGetters: #(
attitudeInDegrees
yawRelativeToAircraftHeading
rollFineTuneInDegrees
mode
calibrationProgress
pitchBalanceTestResult
rollBalanceTestResult
balanceState
)!
DJIGimbalState buildBooleanGetters: #(
isAttitudeReset
isCalibrationSuccessful
isCalibrating
isPitchAtStop
isRollAtStop
isYawAtStop
isBalanceTesting
isMobileDeviceMounted
isMotorOverloaded
)!
DJIGimbalMovementSettings buildNumberGetters: #(
profile
yawSmoothTrackSpeed
pitchSmoothTrackSpeed
yawSmoothTrackDeadband
pitchSmoothTrackDeadband
yawSmoothTrackAcceleration
pitchSmoothTrackAcceleration
yawControllerSmoothingFacton
pitchControllerSmoothingFactor
yawControllerSpeedCoefficient
pitchControllerSpeedCoefficient
)!
DJIGimbalMovementSettings buildBooleanGetters: #(
isYawSmoothTrackEnabled
isPitchSmoothTrackEnabled
)!
DJIGimbalRotation buildNumberGetters: #(
mode
pitch roll yaw
time
)!
DJIGimbalRotation buildStaticFunctions: #(
#(gimbalRotationWithPitchValue:rollValue:yawValue:time:mode:
#(pitchValue rollValue yawValue time mode) DJIGimbalRotation)
)!