DJI Mobile SDK Documentation

      class DJIDiagnostics

      @interface DJIDiagnostics : NSObject
      Header:DJIDiagnostics.h
      Inherits From:NSObject
      Description:

      Product Diagnostics.

      Class Members:
      Component Index
      property
      property componentIndex
      @property(nonatomic, readonly) NSUInteger componentIndex
      Header:DJIDiagnostics.h
      Description:

      Component index of the diagnostics. It is valid when the diagnostics is related to camera or gimbal and the connected product has multiple gimbals and cameras (e.g. M210).

      Error Code
      property
      property code
      @property(nonatomic, readonly) NSInteger code
      Header:DJIDiagnostics.h
      Description:

      Diagnostics error code. If the component is DJIDiagnosticsWarningComponentDeviceHealthInformation, please use DJIDiagnostics_DJIDiagnosticsDeviceHealthInformation_informationId`.

      Reason for the Error
      property
      property reason
      @property(nonatomic, readonly) NSString *_Nonnull reason
      Header:DJIDiagnostics.h
      Description:

      The reason of the error.

      Solution for the Error
      property
      property solution
      @property(nonatomic, readonly) NSString *_Nullable solution
      Header:DJIDiagnostics.h
      Description:

      The suggested solution for the error.

      Warning Component
      property
      property component
      @property(nonatomic, readonly) DJIDiagnosticsWarningComponent component
      Header:DJIDiagnostics.h
      Description:

      The component for the error.

      See Also:

      DJIDiagnosticsWarningComponent

      Health Information
      property
      property healthInformation
      @property(nonatomic, readonly) DJIDiagnosticsDeviceHealthInformation *healthInformation
      Header:DJIDiagnostics.h
      Description:

      The device healthy information, only available when the component is DJIDiagnosticsWarningComponentDeviceHealthInformation.

      See Also:

      DJIDiagnosticsDeviceHealthInformation

      enum DJIDiagnosticsErrorProduct
      typedef NS_ENUM(NSInteger, DJIDiagnosticsErrorProduct)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorProduct.

      Enum Members:
      DJIDiagnosticsErrorProductNotConnectedAircraftAircraft is disconnected.
      DJIDiagnosticsErrorProductDisconnectedRemote controller is disconnected.
      enum DJIDiagnosticsErrorRTK
      typedef NS_ENUM(NSInteger, DJIDiagnosticsErrorRTK)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorRTK.

      Enum Members:
      DJIDiagnosticsErrorRTKPositioningErrorRTK Positioning Error.
      DJIDiagnosticsErrorRTKOrienteeringErrorRTK Orienteering Error.
      enum DJIDiagnosticsDeviceHealthInformationWarningLevel
      typedef NS_ENUM(NSInteger, DJIDiagnosticsDeviceHealthInformationWarningLevel)
      Header:DJIDiagnostics.h
      Description:

      Warning level for components' health information.

      Enum Members:
      DJIDiagnosticsDeviceHealthInformationWarningLevelNoneNo warning.
      DJIDiagnosticsDeviceHealthInformationWarningLevelNoticeDevice health information notice.
      DJIDiagnosticsDeviceHealthInformationWarningLevelCautionWarning message. Fly with caution.
      DJIDiagnosticsDeviceHealthInformationWarningLevelWarningWarning message.
      DJIDiagnosticsDeviceHealthInformationWarningLevelSeriousWarningSerious warning message.
      DJIDiagnosticsDeviceHealthInformationWarningLevelUnknownUnknown.
      enum DJIDiagnosticsErrorVision
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorVision)
      Header:DJIDiagnostics.h
      Description:

      DJI Vision error diagnostics.

      Enum Members:
      DJIDiagnosticsErrorVisionPropellerGuardPropeller Guard Mounted.
      DJIDiagnosticsErrorVisionSensorErrorVision sensor error.
      DJIDiagnosticsErrorVisionSensorCalibrationErrorVision sensor calibration error.
      DJIDiagnosticsErrorVisionSensorCommunicationErrorVision sensor communication error.
      DJIDiagnosticsErrorVisionSystemErrorVision system error.
      DJIDiagnosticsErrorVisionSystemNeedCalibrationVision system calibration is required.
      DJIDiagnosticsErrorVisionTofSenserErrorTof sensor error.
      DJIDiagnosticsErrorVision3DTofSenserError3D Tof sensor error.
      DJIDiagnosticsErrorVisionWeakAmbientLightWeak Ambient Light error.
      enum DJIDiagnosticsErrorFlightController
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorFlightController)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorFlightController.

      Enum Members:
      DJIDiagnosticsErrorFlightControllerHeightLimitMoveToOpenFieldGPS initialization, the flying altitude is limited.
      DJIDiagnosticsErrorFlightControllerForbidSideFlyIn APAS mode the forbid side fly switch is turned on, Cannot fly sideways.
      DJIDiagnosticsErrorFlightControllerAircraftNormalFlightAttiAircraft in Attitude mode. Unable to hover.
      DJIDiagnosticsErrorFlightControllerMotorPowerAbnormalNeedCheckThe motor power is abnormal, and the propeller needs to be checked.
      DJIDiagnosticsErrorFlightControllerAircraftNormalReadyAttiAircraft in Attitude mode. Take off with caution.
      DJIDiagnosticsErrorFlightControllerIMUNeedCalibrationIMU calibration is required.
      DJIDiagnosticsErrorFlightControllerIMUCalibrationIncompleteIncomplete IMU calibration.
      DJIDiagnosticsErrorFlightControllerIMUDataErrorIMU data error.
      DJIDiagnosticsErrorFlightControllerIMUErrorGeneral IMU error.
      DJIDiagnosticsErrorFlightControllerIMUInitFailedIMU initialization failed.
      DJIDiagnosticsErrorFlightControllerBarometerInitFailedBarometer initialization failed.
      DJIDiagnosticsErrorFlightControllerBarometerErrorBarometer error.
      DJIDiagnosticsErrorFlightControllerAccelerometerInitFailedAccelerometer initialization failed.
      DJIDiagnosticsErrorFlightControllerGyroscopeErrorGyroscope error.
      DJIDiagnosticsErrorFlightControllerAttitudeErrorAircraft attitude angle is too large.
      DJIDiagnosticsErrorFlightControllerDataRecordErrorData recorder errors.
      DJIDiagnosticsErrorFlightControllerTakeoffFailedFailed to take off.
      DJIDiagnosticsErrorFlightControllerSystemErrorFlight Controller System error.
      DJIDiagnosticsErrorFlightControllerCompassNeedRestartCompass needs restart.
      DJIDiagnosticsErrorFlightControllerCompassAbnormalCompass rebooting is required.
      DJIDiagnosticsErrorFlightControllerWarmingUpAircraft is warming up.
      DJIDiagnosticsErrorFlightControllerUsingWrongPropellersUsing the wrong propellers. Inspire 2 has propellers for high altitudes and low altitudes. This error will be present when the wrong propellers are being used at the wrong altitude.
      DJIDiagnosticsErrorFlightControllerStrongGaleWarningStrong gale warning.
      DJIDiagnosticsErrorFlightControllerMCReadingDataMC is reading flight data.
      DJIDiagnosticsErrorFlightControllerMCDataErrorMC data error.
      DJIDiagnosticsErrorFlightControllerNotEnoughForceAircraft has not enough force.
      DJIDiagnosticsErrorFlightControllerGoHomeFailedGo home failed.
      DJIDiagnosticsErrorFlightControllerOutOfControlRemote controller out of controller, except when aircraft go home.
      DJIDiagnosticsErrorFlightControllerBarometerStuckInAirBarometer stuck in the air.
      DJIDiagnosticsErrorFlightControllerGPSErrorAircraft GPS Error.
      DJIDiagnosticsErrorFlightControllerCompassInstallErrorCompass Install Error.
      DJIDiagnosticsErrorFlightControllerOnlySupportAttiModeOnly Support Atti Mode.
      DJIDiagnosticsErrorFlightControllerWaterSurfaceWarningWater Surface Warning.
      DJIDiagnosticsErrorFlightControllerKernelBoardHighTemperatureKernel Board High Temperature.
      DJIDiagnosticsErrorFlightControllerEnableNearGroundAlertEnable Near Ground Alert.
      DJIDiagnosticsErrorFlightControllerHeadingControlAbnormalHeading Control Abnormal.
      DJIDiagnosticsErrorFlightControllerTiltControlAbnormalTilt Control Abnormal.
      DJIDiagnosticsErrorFlightControllerAircraftVibrationAbnormalAircraft Vibration Abnormal.
      DJIDiagnosticsErrorFlightControllerPaddleHasIceOnItPaddle Has Ice On It.
      DJIDiagnosticsErrorFlightControllerGPSSignalBlockedByGimbalGPS Signal Blocked By Gimbal.
      DJIDiagnosticsErrorFlightControllerMotorBlockedMotor Blocked.
      DJIDiagnosticsErrorFlightControllerSmartLowPowerGoHomeSmart Low Power Go Home.
      DJIDiagnosticsErrorFlightControllerOverHeatGoHomeOver Heat Go Home.
      DJIDiagnosticsErrorFlightControllerOutOfFlightRadiusLimitOut Of Flight Radius Limit.
      DJIDiagnosticsErrorFlightControllerLowVoltageGoingHomeLow Voltage GoingHome.
      DJIDiagnosticsErrorFlightControllerLowVoltageLandingLow Voltage Landing.
      DJIDiagnosticsErrorFlightControllerOutOfControlGoingHomeOut Of Control Going Home.
      DJIDiagnosticsErrorFlightControllerHeightLimitReasonNoGPSHeight Limit Reason No GPS.
      DJIDiagnosticsErrorFlightControllerHeightLimitReasonCompassInterruptHeight Limit Reason Compass Interrupt.
      DJIDiagnosticsErrorFlightControllerEnvStateTempTooHighEnv State Temp Too High.
      DJIDiagnosticsErrorFlightControllerEnvStateTempTooLowEnv State Temp Too Low.
      DJIDiagnosticsErrorFlightControllerCoverFlightEnableLimitCover Flight Enable Limit.
      DJIDiagnosticsErrorFlightControllerMotorStopForEscShortCircuitMotor Stop For Esc Short Circuit.
      DJIDiagnosticsErrorFlightControllerNoRealNameHeightLimitNo Real Name Height Limit.
      DJIDiagnosticsErrorFlightControllerThreePropellerEmergencyLandingThree Propeller Emergency Landing.
      DJIDiagnosticsErrorFlightControllerLandingProtectionLanding Protection.
      DJIDiagnosticsErrorFlightControllerAircraftPropulsionSystemErrorAircraft Propulsion System Error. Unable to take off.
      enum DJIDiagnosticsErrorVideo
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorVideo)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorVideo.

      Enum Members:
      DJIDiagnosticsErrorVideoDecoderEncryptionErrorVideo decoder encryption error.
      DJIDiagnosticsErrorVideoDecoderConnectToDeserializerErrorDeserializer disconnected.
      enum DJIDiagnosticsErrorCentral
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorCentral)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorCentral.

      Enum Members:
      DJIDiagnosticsErrorCentralConnectToBatteryErrorBattery connection lost.
      DJIDiagnosticsErrorCentralConnectToGPSErrorGPS connection lost.
      DJIDiagnosticsErrorCentralConnectToFlightControllerErrorFlight controller connection lost.
      DJIDiagnosticsErrorCentralConnectToRemoteControllerErrorRemoter controller connection lost.
      DJIDiagnosticsErrorCentralConnectToCameraErrorCamera connection lost.
      DJIDiagnosticsErrorCentralConnectToGimbalErrorGimbal connection lost.
      DJIDiagnosticsErrorAirLinkWiFiMagneticInterferenceHighWiFi Magnetic Interference High.
      enum DJIDiagnosticsErrorRemoteController
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorRemoteController)
      Header:DJIDiagnostics.h
      Description:

      DJI Remoter controller error diagnostics.

      Enum Members:
      DJIDiagnosticsErrorRemoteControllerFPGAErrorRemote controller FPGA error.
      DJIDiagnosticsErrorRemoteControllerTransmitterErrorRemote controller transmitter error.
      DJIDiagnosticsErrorRemoteControllerBatteryErrorRemote controller battery error.
      DJIDiagnosticsErrorRemoteControllerGPSErrorRemote controller GPS error.
      DJIDiagnosticsErrorRemoteControllerEncryptionErrorRemote controller encryption error.
      DJIDiagnosticsErrorRemoteControllerNeedCalibrationRemote controller calibration is required.
      DJIDiagnosticsErrorRemoteControllerBatteryLowRemote controller battery is low.
      DJIDiagnosticsErrorRemoteControllerIdleTooLongRemote controller is idle over a long period of time.
      DJIDiagnosticsErrorRemoteControllerResetRemote controller is reset, please check RC settings
      DJIDiagnosticsErrorRemoteControllerOverHeatRemote controller is overheated.
      DJIDiagnosticsErrorRemoteControllerGoHomeFailGoHome Fail.
      enum DJIDiagnosticsErrorBattery
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorBattery)
      Header:DJIDiagnostics.h
      Description:

      DJI Battery error diagnostics.

      Enum Members:
      DJIDiagnosticsErrorBatteryDischargeOverCurrentBattery overcurrent happens during the discharge process.
      DJIDiagnosticsErrorBatteryDischargeOverHeatBattery is overheated during the discharge process.
      DJIDiagnosticsErrorBatteryLowTemperatureThe temperature is too low for the battery to work.
      DJIDiagnosticsErrorBatteryCellBrokenBattery cell is broken.
      DJIDiagnosticsErrorBatteryNeedStudyBattery needs a complete charge and discharge cycle.
      DJIDiagnosticsErrorBatteryIllegalBattery is not a DJI battery.
      DJIDiagnosticsErrorBatteryNotInPositionThe battery is not installed properly.
      DJIDiagnosticsErrorBatteryCommunicationFailedBattery communication failed.
      DJIDiagnosticsErrorBatteryNotEnoughThe number of battery is not enough.
      DJIDiagnosticsErrorBatteryShortcutBattery short-circuit.
      DJIDiagnosticsErrorBatteryLowVoltageBattery voltage is low.
      DJIDiagnosticsErrorBatteryOverloadOverload.
      DJIDiagnosticsErrorBatteryLowTemperatureInAirLow Temperature In Air.
      DJIDiagnosticsErrorBatteryDangerousWarningSeriousDangerous Warning Serious.
      enum DJIDiagnosticsErrorGimbal
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorGimbal)
      Header:DJIDiagnostics.h
      Description:

      DJI Gimbal error diagnostics.

      Enum Members:
      DJIDiagnosticsErrorGimbalGyroscopeErrorGimbal gyroscope error.
      DJIDiagnosticsErrorGimbalPitchErrorGimbal pitch error.
      DJIDiagnosticsErrorGimbalRollErrorGimbal roll error.
      DJIDiagnosticsErrorGimbalYawErrorGimbal yaw error.
      DJIDiagnosticsErrorGimbalConnectToFCErrorGimbal cannot receive the data from the flight controller.
      DJIDiagnosticsErrorGimbalWaitRestartGimbal motor is overloaded. Reboot automatically.
      DJIDiagnosticsErrorGimbalOverloadGimbal overload.
      DJIDiagnosticsErrorGimbalGyroscopeBrokenGimbal gyroscope is broken.
      DJIDiagnosticsErrorGimbalMotorProtectedGimbal motor is protected.
      DJIDiagnosticsErrorGimbalVibrationAbnormalGimbal vibration is abnormal.
      DJIDiagnosticsErrorGimbalStartupBlockGimbal startup process is blocked.
      DJIDiagnosticsErrorGimbalCalibrateErrorGimbal calibration error.
      DJIDiagnosticsErrorGimbalRunCrazyGimbal run crazy.
      DJIDiagnosticsErrorGimbalRollMechLimitErrorGimbal reaches roll limit.
      DJIDiagnosticsErrorGimbalPitchMechLimitErrorGimbal reaches pitch limit.
      DJIDiagnosticsErrorGimbalSectorsJudgeErrorGimbal sensor initialization error.
      enum DJIDiagnosticsWarningComponent
      typedef NS_ENUM(NSUInteger, DJIDiagnosticsWarningComponent)
      Header:DJIDiagnostics.h
      Description:

      DJI component for diagnostics.

      Enum Members:
      DJIDiagnosticsWarningComponentCameraCamera component.
      DJIDiagnosticsWarningComponentGimbalGimbal component.
      DJIDiagnosticsWarningComponentBatteryBattery component.
      DJIDiagnosticsWarningComponentRemoteControllerRemoteController component.
      DJIDiagnosticsWarningComponentCentralCentral component.
      DJIDiagnosticsWarningComponentVideoVideo component.
      DJIDiagnosticsWarningComponentAirlinkAirlink component.
      DJIDiagnosticsWarningComponentFlightControllerFlightController component.
      DJIDiagnosticsWarningComponentVisionVision component.
      DJIDiagnosticsWarningComponentRTKRTK component.
      DJIDiagnosticsWarningComponentDeviceHealthInformationDevice health information. Only supported by some components of Matrice 300 RTK and Zenmuse H20 series. It is recommended to use device health information to replace old diagnostics for flight controller and RTK. There will be a few duplicated component error for gimbal, battery, perception module on Matrice 300 RTK. Find error code and detailed description on Github (https://github.com/dji-sdk/Mobile-SDK-Android)
      enum DJIDiagnosticsErrorCamera
      typedef NS_ENUM(NSInteger, DJIDiagnosticsErrorCamera)
      Header:DJIDiagnostics.h
      Description:

      DJI Camera error diagnostics.

      Enum Members:
      DJIDiagnosticsErrorCameraChipOverHeatStopRecordWarningChip over heat warning.
      DJIDiagnosticsErrorCameraUpgradeErrorCamera upgrade error.
      DJIDiagnosticsErrorCameraSensorErrorCamera sensor error.
      DJIDiagnosticsErrorCameraOverHeatCamera is overheated.
      DJIDiagnosticsErrorCameraEncryptionErrorCamera encryption error.
      DJIDiagnosticsErrorCameraUSBConnectedSD card or internal storage can't be used when USB connected.
      DJIDiagnosticsErrorCameraNoSDCardNO SD card.
      DJIDiagnosticsErrorCameraSDCardErrorSD card error. this error include different reasons and solutions.
      DJIDiagnosticsErrorCameraNoInternalStorageNo internal storge. Only supported by Mavic Air and Mavic 2 series.
      DJIDiagnosticsErrorCameraInternalStorageErrorInternal storage error. For more detail, please refer to the reason and the solution.
      DJIDiagnosticsErrorCameraNoSSDNo SSD, Only supported by Inspire 2.
      DJIDiagnosticsErrorCameraSSDErrorSSD error. Only supported by Inspire 2. For more detail, please refer to the reason and the solution.
      DJIDiagnosticsErrorCameraChipOverHeatChip Over Heat.
      DJIDiagnosticsErrorCameraTemperaturesTooHighToStopRecordTemperatures Too High To Stop Record.