DJI Mobile SDK Documentation

      class DJIDiagnostics

      class DJIDiagnostics
      Package:dji.sdk.base
      Description:

      Product Diagnostics.

      Class Members:
      Type
      method
      method getType
      DJIDiagnosticsType getType()
      Package:dji.sdk.base
      Description:

      Gets diagnostics type.

      Return:
      DJIDiagnosticsTypeAn enum value of DJIDiagnosticsType.
      Error Code
      method
      method getCode
      int getCode()
      Package:dji.sdk.base
      Description:

      Get diagnostics error code.

      Return:
      intDiagnostics error code.
      Reason for the Error
      method
      method getReason
      String getReason()
      Package:dji.sdk.base
      Description:

      The reason of the error.

      Return:
      StringReason of the error.
      Solution for the Error
      method
      method getSolution
      String getSolution()
      Package:dji.sdk.base
      Description:

      The suggested solution for the error.

      Return:
      StringThe suggest solution for the error.
      Health Information
      method
      method getHealthInformation
      @Nullable DeviceHealthInformation getHealthInformation()
      Package:dji.sdk.base
      Description:

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

      Return:
      @Nullable DeviceHealthInformationAn object of DeviceHealthInformation.
      enum DJIDiagnosticsError
      enum DJIDiagnosticsError
      Package:dji.internal.diagnostics
      Description:

      DJIDiagnosticsError.

      Enum Members:
      CAMERA_UPGRADE_ERRORCamera upgrade error.
      CAMERA_SENSOR_ERRORCamera sensor error.
      CAMERA_OVER_HEATCamera is overheated.
      CAMERA_ENCRYPTION_ERRORCamera encryption error.
      CAMERA_NO_SD_CARDNO SD card.
      CAMERA_SD_CARD_ERRORSD card error. For more detail, please refer to the reason and the solution.
      CAMERA_SD_CARD_NO_SPACERemaining SD card capacity is not enough.
      CAMERA_SD_CARD_FULLSD card is full.
      CAMERA_SD_CARD_READ_ONLYSD card is readonly.
      CAMERA_SD_CARD_NOT_FORMATTEDSD card not formatted.
      CAMERA_CHIP_OVER_HEATChip Over Heat.
      CAMERA_TemperaturesTooHighToStopRecordTemperatures Too High To Stop Record.
      GIMBAL_GYROSCOPE_ERRORGimbal gyroscope error.
      GIMBAL_PITCH_ERRORGimbal pitch error.
      GIMBAL_ROLL_ERRORGimbal roll error.
      GIMBAL_YAW_ERRORGimbal yaw error.
      GIMBAL_CONNECT_TO_FC_ERRORGimbal cannot receive flight controller data.
      BATTERY_DISCHARGE_OVER_CURRENTBattery current too high during discharge.
      BATTERY_DISCHARGE_OVER_HEATBattery too hot during discharge.
      BATTERY_LOW_TEMPERATURELow temperature environment: Battery not suitable for flight.
      BATTERY_CELL_BROKENBattery cell is broken.
      BATTERY_NEED_STUDYBattery needs a complete charge and discharge cycle.
      BATTERY_ILLEGALBattery is not a DJI battery.
      SINGLE_BATTERY_MODEBattery is in single battery mode.
      FAKE_BATTERY_MODEBattery is in fake battery mode.
      BATTERY_CYCLE_TIME_OVERBattery's cycle times is over
      BATTERY_DIFF_USAGEOld battery and new battery.
      BATTERY_OVER_LOADOverload.
      BATTERY_LOW_VOLTAGEBattery voltage is low.
      BATTERY_DANGEROUS_WARNING_SERIOUSDangerous Warning Serious.
      BATTERY_COMMUNICATION_FAILBattery communication failed.
      BATTERY_SHORT_CUTBattery short-circuit.
      REMOTE_CONTROLLER_FPGA_ERRORRC FPGA error.
      REMOTE_CONTROLLER_TRANSMITTER_ERRORRC transmitter error.
      REMOTE_CONTROLLER_BATTERY_ERRORRC battery error.
      REMOTE_CONTROLLER_GPS_ERRORRC GPS error.
      REMOTE_CONTROLLER_ENCRYPTION_ERRORRC encryption error.
      REMOTE_CONTROLLER_NEED_CALIBRATIONRC is not calibrated.
      REMOTE_CONTROLLER_BATTERY_LOWRC battery low.
      REMOTE_CONTROLLER_IDLE_TOO_LONGRC idle for too long.
      REMOTE_CONTROLLER_RESETRC is reset, please check RC settings
      REMOTE_CONTROLLER_OVER_HEATRC overheated.
      CENTRAL_BOARD_CONNECT_TO_BATTERY_ERRORBattery connection to the center board has failed.
      CENTRAL_BOARD_CONNECT_TO_GPS_ERRORGPS connection to the center board has failed.
      CENTRAL_BOARD_CONNECT_TO_FC_ERRORFlight controller connection to the center board has failed.
      VIDEO_DECODER_ENCRYPTION_ERRORVideo decoder encryption error.
      VIDEO_DECODER_CONNECT_TO_DESERIALIZER_ERRORDeserializer disconnected.
      AIR_ENCODER_ERRORAircraft Encoder Error.
      AIR_ENCODER_UPGRADEAircraft updating.
      AIR_LINK_NO_SIGNALNo Signal.
      AIR_LINK_LOW_RC_SIGNALLow RC Signal.
      AIR_LINK_STRONG_RC_RADIO_SIGNAL_NOISEStrong RC Radio Signal Noise.
      AIR_LINK_LOW_RADIO_SIGNALLow Radio Signal.
      AIR_LINK_STRONG_RADIO_SIGNAL_NOISEStrong Radio Signal Noise.
      AIR_LINK_WIFI_MAGNETIC_INTERFERENCE_HIGHWiFi Magnetic Interference High.
      FLIGHT_CONTROLLER_IMU_NEED_CALIBRATIONIMU calibration required.
      FLIGHT_CONTROLLER_IMU_CALIBRATION_INCOMPLETEIMU calibration incomplete.
      FLIGHT_CONTROLLER_IMU_DATA_ERRORIMU data error.
      FLIGHT_CONTROLLER_IMU_ERRORGeneral IMU error.
      FLIGHT_CONTROLLER_IMU_INIT_FAILEDIMU initialization failed.
      FLIGHT_CONTROLLER_BAROMETER_INIT_FAILEDBarometer initialization failed.
      FLIGHT_CONTROLLER_BAROMETER_ERRORBarometer error.
      FLIGHT_CONTROLLER_ACCELEROMETER_INIT_FAILEDAccelerometer failed.
      FLIGHT_CONTROLLER_GYROSCOPE_ERRORGyroscope error.
      FLIGHT_CONTROLLER_ATTITUDE_ERRORAircraft attitude angle is too large.
      FLIGHT_CONTROLLER_DATA_RECORD_ERRORData recorder errors.
      FLIGHT_CONTROLLER_TAKEOFF_FAILEDTake-off failure.
      FLIGHT_CONTROLLER_SYSTEM_ERRORUnknown flight controller error.
      FLIGHT_CONTROLLER_IMU_HEATINGImu is heating.
      FLIGHT_CONTROLLER_COMPASS_NEED_RESTARTCompass needs restart.
      FLIGHT_CONTROLLER_COMPASS_ABNORMALCompass abnormal.
      FLIGHT_CONTROLLER_USING_WRONG_PROPELLERSUsing 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.
      VISION_SYSTEM_NEED_CALIBRATIONVision system calibration is required.
      VISION_PROPELLER_GUARDPropeller Guard Mounted.
      VISION_SENSOR_ERRORVision sensor error.
      VISION_SENSOR_CALIBRATION_ERRORVision sensor calibration error.
      VISION_SENSOR_COMMUNICATION_ERRORVision sensor communication error.
      VISION_SYSTEM_ERRORVision system error.
      GIMBAL_LOCATE_ERRORGimbal locate error.
      RTK_POSITIONING_ERRORRTK Positioning error.
      RTK_ORIENTEERING_ERRORRTK Orienteering error.
      VISION_WEAK_AMBIENT_LIGHTWeak Ambient Light error.
      FLIGHT_CONTROLLER_MC_READING_DATAMC is reading flight data.
      FLIGHT_CONTROLLER_MC_DATA_ERRORMC data error.
      FLIGHT_CONTROLLER_BATTERY_NOT_IN_POSITIONNot in Position error.
      FLIGHT_CONTROLLER_NOT_ENOUGH_FORCEAircraft has not enough force.
      REMOTE_CONTROLLER_GO_HOME_FAILGo home failed.
      FLIGHT_CONTROLLER_OUT_OF_CONTROL_GOING_HOMERemote controller out of controller, except when aircraft go home.
      FLIGHT_CONTROLLER_GPS_ERRORAircraft GPS Error.
      FLIGHT_CONTROLLER_COMPASS_INSTALL_ERRORCompass Install Error.
      FLIGHT_CONTROLLER_ONLY_SUPPORT_ATTI_MODEOnly Support Atti Mode.
      FLIGHT_CONTROLLER_WATER_SURFACE_WARNINGWater Surface Warning.
      FLIGHT_CONTROLLER_KERNEL_BOARD_HIGH_TEMPERATUREKernel Board High Temperature.
      FLIGHT_CONTROLLER_ENABLE_NEAR_GROUND_ALERTEnable Near Ground Alert.
      FLIGHT_CONTROLLER_HEADING_CONTROL_ABNORMALHeading Control Abnormal.
      FLIGHT_CONTROLLER_TILT_CONTROL_ABNORMALTilt Control Abnormal.
      FLIGHT_CONTROLLER_AIRCRAFT_VIBRATION_ABNORMALAircraft Vibration Abnormal.
      FLIGHT_CONTROLLER_PADDLE_HAS_ICE_ON_ITPaddle Has Ice On It.
      FLIGHT_CONTROLLER_GPS_SIGNAL_BLOCKED_BY_GIMBALGPS Signal Blocked By Gimbal.
      FLIGHT_CONTROLLER_MOTOR_BLOCKEDMotor Blocked.
      FLIGHT_CONTROLLER_SMART_LOW_POWER_GO_HOMESmart Low Power Go Home.
      FLIGHT_CONTROLLER_OVER_HEAT_GO_HOMEOver Heat Go Home.
      FLIGHT_CONTROLLER_OUT_OF_FLIGHT_RADIUS_LIMITOut Of Flight Radius Limit.
      FLIGHT_CONTROLLER_LOW_VOLTAGE_GOING_HOMELow Voltage GoingHome.
      FLIGHT_CONTROLLER_LOW_VOLTAGE_LANDINGLow Voltage Landing.
      FLIGHT_CONTROLLER_HEIGHT_LIMIT_MOVE_TO_OPEN_FIELDGPS initialization, the flying altitude is limited.
      PRODUCT_AIRCRAFT_DISCONNECTEDAircraft is disconnected.
      PRODUCT_RC_DISCONNECTEDRemote controller is disconnected.
      CAMERA_CHIP_OVER_HEAT_STOP_RECORD_WARNINGChip over heat warning.
      AIR_LINK_CHIPS_TEMPERATURE_WARNINGChip Temperature Warning.
      AIR_LINK_CHIPS_TEMPERATURE_DANGEREROUSChip Temperature Dangerous.
      AIR_LINK_CHIPS_TEMPERATURE_WARNING_IN_AIRChip Temperature Warning.
      AIR_LINK_CHIPS_TEMPERATURE_DANGEREROUS_IN_AIRChip Temperature Dangerous.
      FLIGHT_CONTROLLER_MOTOR_START_ERRORMotor start error.
      FLIGHT_CONTROLLER_NO_PROPELLERAircraft propeller damage.
      FLIGHT_CONTROLLER_MOTOR_STOP_REASONMotor stop error.
      FLIGHT_CONTROLLER_FORBID_SIDE_FLY_ERRORIn APAS mode the forbid side fly switch is turned on, Cannot fly sideways.
      CAMERA_ABNORMAL_REBOOTAbnormal reboot.
      FLIGHT_CONTROLLER_AIRCRAFT_NORMAL_FLIGHT_ATTIAircraft in Attitude mode. Unable to hover.
      FLIGHT_CONTROLLER_MOTOR_POWER_ABNORMAL_NEED_CHECKThe motor power is abnormal, and the propeller needs to be checked.
      FLIGHT_CONTROLLER_FLIGHT_ACTION_FLY_LIMIT_ZONE_LANDINGAircraft is in the no fly zone and can't fly.
      FLIGHT_CONTROLLER_HEIGHT_LIMIT_REASON_NO_GPSHeight Limit Reason No GPS.
      FLIGHT_CONTROLLER_HEIGHT_LIMIT_REASON_COMPASS_INTERRUPTHeight Limit Reason Compass Interrupt.
      FLIGHT_CONTROLLER_ENV_STATE_TEMP_TOO_HIGHEnv State Temp Too High.
      FLIGHT_CONTROLLER_ENV_STATE_TEMP_TOO_LOWEnv State Temp Too Low.
      FLIGHT_CONTROLLER_COVER_FLIGHT_ENABLE_LIMITCover Flight Enable Limit.
      FLIGHT_CONTROLLER_MOTOR_STOP_FOR_ESC_SHORT_CIRCUITMotor Stop For Esc Short Circuit.
      FLIGHT_CONTROLLER_NO_REAL_NAME_HEIGHT_LIMITNo Real Name Height Limit.
      FLIGHT_CONTROLLER_THREE_PROPELLER_EMERGENCY_LANDINGThree Propeller Emergency Landing.
      FLIGHT_CONTROLLER_LANDING_PROTECTIONLanding Protection.
      FLIGHT_CONTROLLER_AIRCRAFT_PROPULSION_SYSTEM_ERRORAircraft Propulsion System Error.
      FLIGHT_CONTROLLER_STRONG_GALE_WARNINGStrong gale warning.
      Class Members:
      enum DJIDiagnosticsType
      enum DJIDiagnosticsType
      Package:dji.sdk.base
      Description:

      Diagnostics components type.

      Enum Members:
      BATTERYBattery component.
      CAMERACamera component.
      CENTER_BOARDCenter board component.
      ON_SCREEN_DISPLAYComponents' error often shown on the main screen.
      FLIGHT_CONTROLLERFlight controller component.
      GIMBALGimbal component.
      LIGHTBRIDGELightbridge component.
      REMOTE_CONTROLLERRemote controller component.
      VISIONVision component.
      RTKRTK component.
      DEVICE_HEALTH_INFORMATIONDevice 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 information in the Readme file on Github (https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/README.md)
      OTHEROther.
      Class Members:
      enum WarningLevel
      enum WarningLevel
      Package:dji.common.healthmanager
      Description:

      Warning level for components' health information.

      Enum Members:
      NONENo warning.
      NOTICEDevice health information notice.
      CAUTIONWarning message. Fly with caution.
      WARNINGWarning message.
      SERIOUS_WARNINGSerious warning message.
      UNKNOWNUnknown.
      Class Members: