Documentation ¶
Index ¶
- Constants
- type AccessType
- type DJIBoolParamValue
- type DJIFloatParamValue
- type DJIFunctionEnableInfo
- type DJIFunctionEnableParamValue
- type DJIGimbalAngleRotationParamValue
- type DJIKeys
- type DJILongParamValue
- type DJIParamValue
- type DJIParamValueType
- type DJIRMEnableFunctionType
- type DJIRealControlParamValue
- type DJIResult
Constants ¶
View Source
const ( Blooded = 2 MovementControl = 3 GunControl = 4 OffControlFunction = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessType ¶
type AccessType int
const ( AccessType_None AccessType = 0 AccessType_Read AccessType = 1 << (iota - 1) AccessType_Write AccessType_Action )
type DJIBoolParamValue ¶
type DJIBoolParamValue struct {
Value bool `json:"value"`
}
func NewDJIBoolParamValue ¶
func NewDJIBoolParamValue(value bool) *DJIBoolParamValue
type DJIFloatParamValue ¶
type DJIFloatParamValue struct {
Value float32 `json:"value"`
}
func NewDJIFloatParamValue ¶
func NewDJIFloatParamValue(value float32) *DJIFloatParamValue
type DJIFunctionEnableInfo ¶
type DJIFunctionEnableInfo struct { ID DJIRMEnableFunctionType `json:"id"` Enabled bool `json:"enabled"` }
type DJIFunctionEnableParamValue ¶
type DJIFunctionEnableParamValue struct {
List []DJIFunctionEnableInfo `json:"list"`
}
func NewDJIFunctionEnableParamValue ¶
func NewDJIFunctionEnableParamValue() *DJIFunctionEnableParamValue
func (*DJIFunctionEnableParamValue) AddFunctionType ¶
func (p *DJIFunctionEnableParamValue) AddFunctionType(id DJIRMEnableFunctionType, enabled bool)
type DJIGimbalAngleRotationParamValue ¶
type DJIGimbalAngleRotationParamValue struct { Pitch int16 `json:"pitch"` Yaw int16 `json:"yaw"` Time int16 `json:"time"` }
func NewDJIGimbalAngleRotationParamValue ¶
func NewDJIGimbalAngleRotationParamValue(pitch, yaw int16, time int16) *DJIGimbalAngleRotationParamValue
type DJIKeys ¶
type DJIKeys int
const ( DJIKeyNone DJIKeys = iota DJIProductTest DJIProductType DJICameraConnection DJICameraFirmwareVersion DJICameraStartShootPhoto DJICameraIsShootingPhoto DJICameraPhotoSize DJICameraStartRecordVideo DJICameraStopRecordVideo DJICameraIsRecording DJICameraCurrentRecordingTimeInSeconds DJICameraVideoFormat DJICameraMode DJICameraDigitalZoomFactor DJICameraAntiFlicker DJICameraSwitch DJICameraCurrentCameraIndex DJICameraHasMainCamera DJICameraHasSecondaryCamera DJICameraFormatSDCard DJICameraSDCardIsFormatting DJICameraSDCardIsFull DJICameraSDCardHasError DJICameraSDCardIsInserted DJICameraSDCardTotalSpaceInMB DJICameraSDCardRemaingSpaceInMB DJICameraSDCardAvailablePhotoCount DJICameraSDCardAvailableRecordingTimeInSeconds DJICameraIsTimeSynced DJICameraDate DJICameraVideoTransRate DJICameraRequestIFrame DJICameraAntiLarsenAlgorithmEnable DJIMainControllerConnection DJIMainControllerFirmwareVersion DJIMainControllerLoaderVersion DJIMainControllerVirtualStick DJIMainControllerVirtualStickEnabled DJIMainControllerChassisSpeedMode DJIMainControllerChassisFollowMode DJIMainControllerChassisCarControlMode DJIMainControllerRecordState DJIMainControllerGetRecordSetting DJIMainControllerSetRecordSetting DJIMainControllerPlayRecordAttr DJIMainControllerGetPlayRecordSetting DJIMainControllerSetPlayRecordSetting DJIMainControllerMaxSpeedForward DJIMainControllerMaxSpeedBackward DJIMainControllerMaxSpeedLateral DJIMainControllerSlopeY DJIMainControllerSlopeX DJIMainControllerSlopeBreakY DJIMainControllerSlopeBreakX DJIMainControllerMaxSpeedForwardConfig DJIMainControllerMaxSpeedBackwardConfig DJIMainControllerMaxSpeedLateralConfig DJIMainControllerSlopSpeedYConfig DJIMainControllerSlopSpeedXConfig DJIMainControllerSlopBreakYConfig DJIMainControllerSlopBreakXConfig DJIMainControllerChassisPosition DJIMainControllerWheelSpeed DJIRobomasterMainControllerEscEncodingStatus DJIRobomasterMainControllerEscEncodeFlag DJIRobomasterMainControllerStartIMUCalibration DJIRobomasterMainControllerIMUCalibrationState DJIRobomasterMainControllerIMUCalibrationCurrSide DJIRobomasterMainControllerIMUCalibrationProgress DJIRobomasterMainControllerIMUCalibrationFailCode DJIRobomasterMainControllerIMUCalibrationFinishFlag DJIRobomasterMainControllerStopIMUCalibration DJIRobomasterChassisMode DJIRobomasterChassisSpeed DJIRobomasterOpenChassisSpeedUpdates DJIRobomasterCloseChassisSpeedUpdates DJIRobomasterMainControllerRelativePosition DJIMainControllerArmServoID DJIMainControllerServoAddressing DJIRemoteControllerConnection DJIGimbalConnection DJIGimbalESCFirmwareVersion DJIGimbalFirmwareVersion DJIGimbalWorkMode DJIGimbalControlMode DJIGimbalResetPosition DJIGimbalResetPositionState DJIGimbalCalibration DJIGimbalSpeedRotation DJIGimbalSpeedRotationEnabled DJIGimbalAngleIncrementRotation DJIGimbalAngleFrontYawRotation DJIGimbalAngleFrontPitchRotation DJIGimbalAttitude DJIGimbalAutoCalibrate DJIGimbalCalibrationStatus DJIGimbalCalibrationProgress DJIGimbalOpenAttitudeUpdates DJIGimbalCloseAttitudeUpdates DJIRobomasterSystemConnection DJIRobomasterSystemFirmwareVersion DJIRobomasterSystemCANFirmwareVersion DJIRobomasterSystemScratchFirmwareVersion DJIRobomasterSystemSerialNumber DJIRobomasterSystemAbilitiesAttack DJIRobomasterSystemUnderAbilitiesAttack DJIRobomasterSystemKill DJIRobomasterSystemRevive DJIRobomasterSystemGet1860LinkAck DJIMainControllerGetLinkAck DJIGimbalGetLinkAck DJIRobomasterSystemGameRoleConfig DJIRobomasterSystemGameColorConfig DJIRobomasterSystemGameStart DJIRobomasterSystemGameEnd DJIRobomasterSystemDebugLog DJIRobomasterSystemSoundEnabled DJIRobomasterSystemLeftHeadlightBrightness DJIRobomasterSystemRightHeadlightBrightness DJIRobomasterSystemLEDColor DJIRobomasterSystemUploadScratch DJIRobomasterSystemUploadScratchByFTP DJIRobomasterSystemUninstallScratchSkill DJIRobomasterSystemInstallScratchSkill DJIRobomasterSystemInquiryDspMd5 DJIRobomasterSystemInquiryDspMd5Ack DJIRobomasterSystemInquiryDspResourceMd5 DJIRobomasterSystemInquiryDspResourceMd5Ack DJIRobomasterSystemLaunchSinglePlayerCustomSkill DJIRobomasterSystemStopSinglePlayerCustomSkill DJIRobomasterSystemControlScratch DJIRobomasterSystemScratchState DJIRobomasterSystemScratchCallback DJIRobomasterSystemForesightPosition DJIRobomasterSystemPullLogFiles DJIRobomasterSystemCurrentHP DJIRobomasterSystemTotalHP DJIRobomasterSystemCurrentBullets DJIRobomasterSystemTotalBullets DJIRobomasterSystemEquipments DJIRobomasterSystemBuffs DJIRobomasterSystemSkillStatus DJIRobomasterSystemGunCoolDown DJIRobomasterSystemGameConfigList DJIRobomasterSystemCarAndSkillID DJIRobomasterSystemAppStatus DJIRobomasterSystemLaunchMultiPlayerSkill DJIRobomasterSystemStopMultiPlayerSkill DJIRobomasterSystemConfigSkillTable DJIRobomasterSystemWorkingDevices DJIRobomasterSystemExceptions DJIRobomasterSystemTaskStatus DJIRobomasterSystemReturnEnabled DJIRobomasterSystemSafeMode DJIRobomasterSystemScratchExecuteState DJIRobomasterSystemAttitudeInfo DJIRobomasterSystemSightBeadPosition DJIRobomasterSystemSpeakerLanguage DJIRobomasterSystemSpeakerVolumn DJIRobomasterSystemChassisSpeedLevel DJIRobomasterSystemIsEncryptedFirmware DJIRobomasterSystemScratchErrorInfo DJIRobomasterSystemScratchOutputInfo DJIRobomasterSystemBarrelCoolDown DJIRobomasterSystemResetBarrelOverheat DJIRobomasterSystemMobileAccelerInfo DJIRobomasterSystemMobileGyroAttitudeAngleInfo DJIRobomasterSystemMobileGyroRotationRateInfo DJIRobomasterSystemEnableAcceleratorSubscribe DJIRobomasterSystemEnableGyroRotationRateSubscribe DJIRobomasterSystemEnableGyroAttitudeAngleSubscribe DJIRobomasterSystemDeactivate DJIRobomasterSystemFunctionEnable DJIRobomasterSystemIsGameRunning DJIRobomasterSystemIsActivated DJIRobomasterSystemLowPowerConsumption DJIRobomasterSystemEnterLowPowerConsumption DJIRobomasterSystemExitLowPowerConsumption DJIRobomasterSystemIsLowPowerConsumption DJIRobomasterSystemPushFile DJIRobomasterSystemPlaySound DJIRobomasterSystemPlaySoundStatus DJIRobomasterSystemCustomUIAttribute DJIRobomasterSystemCustomUIFunctionEvent DJIRobomasterSystemTotalMileage DJIRobomasterSystemTotalDrivingTime DJIRobomasterSystemSetPlayMode DJIRobomasterSystemCustomSkillInfo DJIRobomasterSystemAddressing DJIRobomasterSystemLEDLightEffect DJIRobomasterSystemOpenImageTransmission DJIRobomasterSystemCloseImageTransmission DJIVisionFirmwareVersion DJIVisionTrackingAutoLockTarget DJIVisionARParameters DJIVisionARTagEnabled DJIVisionDebugRect DJIVisionLaserPosition DJIVisionDetectionEnable DJIVisionMarkerRunningStatus DJIVisionTrackingRunningStatus DJIVisionAimbotRunningStatus DJIVisionHeadAndShoulderStatus DJIVisionHumanDetectionRunningStatus DJIVisionUserConfirm DJIVisionUserCancel DJIVisionUserTrackingRect DJIVisionTrackingDistance DJIVisionLineColor DJIVisionMarkerColor DJIVisionMarkerAdvanceStatus DJIPerceptionFirmwareVersion DJIPerceptionMarkerEnable DJIPerceptionMarkerResult DJIESCFirmwareVersion1 DJIESCFirmwareVersion2 DJIESCFirmwareVersion3 DJIESCFirmwareVersion4 DJIESCMotorInfomation1 DJIESCMotorInfomation2 DJIESCMotorInfomation3 DJIESCMotorInfomation4 DJIWiFiLinkFirmwareVersion DJIWiFiLinkDebugInfo DJIWiFiLinkMode DJIWiFiLinkSSID DJIWiFiLinkPassword DJIWiFiLinkAvailableChannelNumbers DJIWiFiLinkCurrentChannelNumber DJIWiFiLinkSNR DJIWiFiLinkSNRPushEnabled DJIWiFiLinkReboot DJIWiFiLinkChannelSelectionMode DJIWiFiLinkInterference DJIWiFiLinkDeleteNetworkConfig DJISDRLinkSNR DJISDRLinkBandwidth DJISDRLinkChannelSelectionMode DJISDRLinkCurrentFreqPoint DJISDRLinkCurrentFreqBand DJISDRLinkIsDualFreqSupported DJISDRLinkUpdateConfigs DJIAirLinkConnection DJIAirLinkSignalQuality DJIAirLinkCountryCode DJIAirLinkCountryCodeUpdated DJIArmorFirmwareVersion1 DJIArmorFirmwareVersion2 DJIArmorFirmwareVersion3 DJIArmorFirmwareVersion4 DJIArmorFirmwareVersion5 DJIArmorFirmwareVersion6 DJIArmorUnderAttack DJIArmorEnterResetID DJIArmorCancelResetID DJIArmorSkipCurrentID DJIArmorResetStatus DJIRobomasterWaterGunFirmwareVersion DJIRobomasterWaterGunWaterGunFire DJIRobomasterWaterGunWaterGunFireWithTimes DJIRobomasterWaterGunShootSpeed DJIRobomasterWaterGunShootFrequency DJIRobomasterInfraredGunConnection DJIRobomasterInfraredGunFirmwareVersion DJIRobomasterInfraredGunInfraredGunFire DJIRobomasterInfraredGunShootFrequency DJIRobomasterBatteryFirmwareVersion DJIRobomasterBatteryPowerPercent DJIRobomasterBatteryVoltage DJIRobomasterBatteryTemperature DJIRobomasterBatteryCurrent DJIRobomasterBatteryShutdown DJIRobomasterBatteryReboot DJIRobomasterGamePadConnection DJIRobomasterGamePadFirmwareVersion DJIRobomasterGamePadHasMouse DJIRobomasterGamePadHasKeyboard DJIRobomasterGamePadCtrlSensitivityX DJIRobomasterGamePadCtrlSensitivityY DJIRobomasterGamePadCtrlSensitivityYaw DJIRobomasterGamePadCtrlSensitivityYawSlop DJIRobomasterGamePadCtrlSensitivityYawDeadZone DJIRobomasterGamePadCtrlSensitivityPitch DJIRobomasterGamePadCtrlSensitivityPitchSlop DJIRobomasterGamePadCtrlSensitivityPitchDeadZone DJIRobomasterGamePadMouseLeftButton DJIRobomasterGamePadMouseRightButton DJIRobomasterGamePadC1 DJIRobomasterGamePadC2 DJIRobomasterGamePadFire DJIRobomasterGamePadFn DJIRobomasterGamePadNoCalibrate DJIRobomasterGamePadNotAtMiddle DJIRobomasterGamePadBatteryWarning DJIRobomasterGamePadBatteryPercent DJIRobomasterGamePadActivationSettings DJIRobomasterGamePadControlEnabled DJIRobomasterClawConnection DJIRobomasterClawFirmwareVersion DJIRobomasterClawCtrl DJIRobomasterClawStatus DJIRobomasterClawInfoSubscribe DJIRobomasterEnableClawInfoSubscribe DJIRobomasterArmConnection DJIRobomasterArmCtrl DJIRobomasterArmCtrlMode DJIRobomasterArmCalibration DJIRobomasterArmBlockedFlag DJIRobomasterArmPositionSubscribe DJIRobomasterArmReachLimitX DJIRobomasterArmReachLimitY DJIRobomasterEnableArmInfoSubscribe DJIRobomasterArmControlMode DJIRobomasterTOFConnection DJIRobomasterTOFLEDColor DJIRobomasterTOFOnlineModules DJIRobomasterTOFInfoSubscribe DJIRobomasterEnableTOFInfoSubscribe DJIRobomasterTOFFirmwareVersion1 DJIRobomasterTOFFirmwareVersion2 DJIRobomasterTOFFirmwareVersion3 DJIRobomasterTOFFirmwareVersion4 DJIRobomasterServoConnection DJIRobomasterServoLEDColor DJIRobomasterServoSpeed DJIRobomasterServoOnlineModules DJIRobomasterServoInfoSubscribe DJIRobomasterEnableServoInfoSubscribe DJIRobomasterServoFirmwareVersion1 DJIRobomasterServoFirmwareVersion2 DJIRobomasterServoFirmwareVersion3 DJIRobomasterServoFirmwareVersion4 DJIRobomasterSensorAdapterConnection DJIRobomasterSensorAdapterOnlineModules DJIRobomasterSensorAdapterInfoSubscribe DJIRobomasterEnableSensorAdapterInfoSubscribe DJIRobomasterSensorAdapterFirmwareVersion1 DJIRobomasterSensorAdapterFirmwareVersion2 DJIRobomasterSensorAdapterFirmwareVersion3 DJIRobomasterSensorAdapterFirmwareVersion4 DJIRobomasterSensorAdapterFirmwareVersion5 DJIRobomasterSensorAdapterFirmwareVersion6 DJIRobomasterSensorAdapterLEDColor DJIKeysCount )
func (DJIKeys) AccessType ¶
func (k DJIKeys) AccessType() AccessType
type DJILongParamValue ¶
type DJILongParamValue struct {
Value int64 `json:"value"`
}
func NewDJILongParamValue ¶
func NewDJILongParamValue(value int64) *DJILongParamValue
type DJIParamValue ¶
type DJIParamValue any
type DJIParamValueType ¶
type DJIParamValueType int
const ( DJIParamValueTypeString DJIParamValueType = iota DJIParamValueTypeNumber DJIParamValueTypeStruct DJIParamValueTypeOther )
type DJIRMEnableFunctionType ¶
type DJIRMEnableFunctionType int
type DJIResult ¶
type DJIResult struct {
// contains filtered or unexported fields
}
func NewDJIResult ¶
func NewDJIResultFromJSON ¶
func (*DJIResult) SequenceNumber ¶
func (*DJIResult) Value ¶
func (r *DJIResult) Value() DJIParamValue
Source Files ¶
- dji_bool_param_value.go
- dji_float_param_value.go
- dji_function_enable_info.go
- dji_function_enable_param_value.go
- dji_gimbal_angle_rotation_param_value.go
- dji_keys.go
- dji_long_param_value.go
- dji_param_value.go
- dji_param_value_type.go
- dji_real_control_param_value.go
- dji_result.go
- dji_rm_enable_function_type.go
Click to show internal directories.
Click to hide internal directories.