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.

      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

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

      DJIDiagnosticsErrorRTK.

      Enum Members:
      DJIDiagnosticsErrorRTKPositioningErrorRTK Positioning Error.
      DJIDiagnosticsErrorRTKOrienteeringErrorRTK Orienteering Error.
      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.
      enum DJIDiagnosticsErrorFlightController
      typedef NS_ENUM (NSInteger, DJIDiagnosticsErrorFlightController)
      Header:DJIDiagnostics.h
      Description:

      DJIDiagnosticsErrorFlightController.

      Enum Members:
      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.
      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.
      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.
      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.
      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.
      enum DJIDiagnosticsErrorCamera
      typedef NS_ENUM(NSInteger, DJIDiagnosticsErrorCamera)
      Header:DJIDiagnostics.h
      Description:

      DJI Camera error diagnostics.

      Enum Members:
      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.