dji

package
v0.0.0-...-e766dbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (DJIKeys) DataType

func (k DJIKeys) DataType() reflect.Type

func (DJIKeys) String

func (k DJIKeys) String() string

func (DJIKeys) Value

func (k DJIKeys) Value() uint32

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 DJIRealControlParamValue

type DJIRealControlParamValue struct {
	LeftVerticalInput    float32
	LeftHorizontalInput  float32
	RightVerticalInput   float32
	RightHorizontalInput float32
	IsLeftInputTouched   bool
	IsRightInputTouched  bool
	YawFollowMode        bool
}

type DJIResult

type DJIResult struct {
	// contains filtered or unexported fields
}

func NewDJIResult

func NewDJIResult(key DJIKeys) *DJIResult

func NewDJIResultFromJSON

func NewDJIResultFromJSON(jsonData []byte) *DJIResult

func (*DJIResult) ErrorCode

func (r *DJIResult) ErrorCode() int64

func (*DJIResult) ErrorDesc

func (r *DJIResult) ErrorDesc() string

func (*DJIResult) Key

func (r *DJIResult) Key() DJIKeys

func (*DJIResult) SequenceNumber

func (r *DJIResult) SequenceNumber() uint32

func (*DJIResult) Succeeded

func (r *DJIResult) Succeeded() bool

func (*DJIResult) Value

func (r *DJIResult) Value() DJIParamValue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL