DJI Mobile SDK Documentation

      class DJIDiagnostics

      class DJIDiagnostics
      Package:dji.sdk.base
      Description:

      Product Diagnostics.

      Class Members:
      Error Code
      method
      method getCode
      int getCode()
      Package:dji.sdk.base
      Description:

      Get diagnostics error code.

      Return:
      intDiagnostics error code.
      See Also:

      DJIDiagnosticsError

      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.
      enum DJIDiagnosticsError
      enum DJIDiagnosticsError
      Package:dji.internal.diagnostics
      Description:

      DJIDiagnosticsError.

      Enum Members:
      CAMERA_UPGRADE_ERRORAircraft upgrade error.
      CAMERA_SENSOR_ERRORCamera sensor error.
      CAMERA_OVER_HEATCamera has overheated.
      CAMERA_ENCRYPTION_ERRORCamera encryption error.
      CAMERA_NO_SD_CARDNO SD card.
      CAMERA_SD_CARD_ERRORSD card error.
      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.
      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.
      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.
      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_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.
      Class Members:
      interface DiagnosticsInformationCallback
      interface DiagnosticsInformationCallback
      Package:dji.sdk.base
      Description:

      Callback interface that updates the product's current diagnostics information.

      Interface Methods:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(List<DJIDiagnostics> diagnosticsList)
      Package:dji.sdk.base
      Description:

      Callback interface that updates the product's current diagnostics information.

      Input Parameters:
      List<DJIDiagnostics> diagnosticsListThe List of DJIDiagnostics instance.