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.

      See Also:

      DJIDiagnosticsError

      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.

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

      DJIDiagnosticsError.

      Enum Members:
      DJIDiagnosticsErrorCameraUpgradeErrorAircraft upgrade error.
      DJIDiagnosticsErrorCameraSensorErrorCamera sensor error.
      DJIDiagnosticsErrorCameraOverHeatCamera has overheated.
      DJIDiagnosticsErrorCameraEncryptionErrorCamera encryption error.
      DJIDiagnosticsErrorCameraNoSDCardNO SD card.
      DJIDiagnosticsErrorCameraSDCardErrorSD card error.
      DJIDiagnosticsErrorCameraSDCardNoSpaceRemaining SD card capacity is not enough.
      DJIDiagnosticsErrorCameraSDCardFullSD card is full.
      DJIDiagnosticsErrorCameraSDCardReadOnlySD card is readonly.
      DJIDiagnosticsErrorCameraSDCardNotFormattedSD card not formatted.
      DJIDiagnosticsErrorGimbalGyroscopeErrorGimbal gyroscope error.
      DJIDiagnosticsErrorGimbalPitchErrorGimbal pitch error.
      DJIDiagnosticsErrorGimbalRollErrorGimbal roll error.
      DJIDiagnosticsErrorGimbalYawErrorGimbal yaw error.
      DJIDiagnosticsErrorGimbalConnectToFCErrorGimbal cannot receive flight controller data.
      DJIDiagnosticsErrorBatteryDischargeOverCurrentBattery current too high during discharge.
      DJIDiagnosticsErrorBatteryDischargeOverHeatBattery too hot during discharge.
      DJIDiagnosticsErrorBatteryLowTemperatureLow temperature environment: Battery not suitable for flight.
      DJIDiagnosticsErrorBatteryCellBrokenBattery cell is broken.
      DJIDiagnosticsErrorBatteryNeedStudyBattery needs a complete charge and discharge cycle.
      DJIDiagnosticsErrorBatteryIllegalBattery is not a DJI battery.
      DJIDiagnosticsErrorRemoteControllerFPGAErrorRC FPGA error.
      DJIDiagnosticsErrorRemoteControllerTransmitterErrorRC transmitter error.
      DJIDiagnosticsErrorRemoteControllerBatteryErrorRC battery error.
      DJIDiagnosticsErrorRemoteControllerGPSErrorRC GPS error.
      DJIDiagnosticsErrorRemoteControllerEncryptionErrorRC encryption error.
      DJIDiagnosticsErrorRemoteControllerNeedCalibrationRC is not calibrated.
      DJIDiagnosticsErrorRemoteControllerBatteryLowRC battery low.
      DJIDiagnosticsErrorRemoteControllerIdleTooLongRC idle for too long.
      DJIDiagnosticsErrorRemoteControllerResetRC is reset, please check RC settings
      DJIDiagnosticsErrorRemoteControllerOverHeatRC overheated.
      DJIDiagnosticsErrorCentralBoardConnectToBatteryErrorBattery connection to the center board has failed.
      DJIDiagnosticsErrorCentralBoardConnectToGPSErrorGPS connection to the center board has failed.
      DJIDiagnosticsErrorCentralBoardConnectToFCErrorFlight controller connection to the center board has failed.
      DJIDiagnosticsErrorVideoDecoderEncryptionErrorVideo decoder encryption error.
      DJIDiagnosticsErrorVideoDecoderConnectToDeserializerErrorDeserializer disconnected.
      DJIDiagnosticsErrorAirEncoderErrorAircraft Encoder Error.
      DJIDiagnosticsErrorAirEncoderUpgradeAircraft updating.
      DJIDiagnosticsErrorFlightControllerIMUNeedCalibrationIMU calibration required.
      DJIDiagnosticsErrorFlightControllerIMUCalibrationIncompleteIMU calibration incomplete.
      DJIDiagnosticsErrorFlightControllerIMUDataErrorIMU data error.
      DJIDiagnosticsErrorFlightControllerIMUErrorGeneral IMU error.
      DJIDiagnosticsErrorFlightControllerIMUInitFailedIMU initialization failed.
      DJIDiagnosticsErrorFlightControllerBarometerInitFailedBarometer initialization failed.
      DJIDiagnosticsErrorFlightControllerBarometerErrorBarometer error.
      DJIDiagnosticsErrorFlightControllerAccelerometerInitFailedAccelerometer failed.
      DJIDiagnosticsErrorFlightControllerGyroscopeErrorGyroscope error.
      DJIDiagnosticsErrorFlightControllerAttitudeErrorAircraft attitude angle is too large.
      DJIDiagnosticsErrorFlightControllerDataRecordErrorData recorder errors.
      DJIDiagnosticsErrorFlightControllerTakeoffFailedTake-off failure.
      DJIDiagnosticsErrorFlightControllerSystemErrorUnknown flight controller error.
      DJIDiagnosticsErrorFlightControllerCompassNeedRestartCompass needs restart.
      DJIDiagnosticsErrorFlightControllerCompassAbnormalCompass abnormal.
      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.
      DJIDiagnosticsErrorVisionPropellerGuardPropeller Guard Mounted.
      DJIDiagnosticsErrorVisionSensorErrorVision sensor error.
      DJIDiagnosticsErrorVisionSensorCalibrationErrorVision sensor calibration error.
      DJIDiagnosticsErrorVisionSensorCommunicationErrorVision sensor communication error.
      DJIDiagnosticsErrorVisionSystemErrorVision system error.