DJI Mobile SDK Documentation

      class DJIRemoteControllerError

      @EXClassNullAway
      class DJIRemoteControllerError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Defines all remote controller related errors.

      Class Members:
      method getDJIError
      static DJIError getDJIError(Ccode ccode)
      Package:dji.common.error
      Description:

      Returns the specific error in DJIRemoteControllerError according to the error code.

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorA DJIError instance of the specific error.
      final FIRMWARE_NON_SEQUENCE
      static final DJIRemoteControllerError FIRMWARE_NON_SEQUENCE = new DJIRemoteControllerError("Firmware not pattern")
      Package:dji.common.error
      Description:

      The sequence number of the firmware is not continuous.

      final FIRMWARE_LENGTH_WRONG
      static final DJIRemoteControllerError FIRMWARE_LENGTH_WRONG = new DJIRemoteControllerError("Firmware length invalid")
      Package:dji.common.error
      Description:

      The file size of the firmware is wrong.

      final FIRMWARE_CRC_WRONG
      static final DJIRemoteControllerError FIRMWARE_CRC_WRONG = new DJIRemoteControllerError("Firmware CRC value invalid")
      Package:dji.common.error
      Description:

      The check number of the firmware is wrong.

      final FLASH_CLEAR_WRONG
      static final DJIRemoteControllerError FLASH_CLEAR_WRONG = new DJIRemoteControllerError("Flash clear error")
      Package:dji.common.error
      Description:

      The clear action of the flash is wrong.

      final FLASH_WRITE_WRONG
      static final DJIRemoteControllerError FLASH_WRITE_WRONG = new DJIRemoteControllerError("Flash write error")
      Package:dji.common.error
      Description:

      The write action of the flash is wrong.

      final UPDATE_WRONG
      static final DJIRemoteControllerError UPDATE_WRONG = new DJIRemoteControllerError("Update error")
      Package:dji.common.error
      Description:

      The update process is wrong.

      final FIRMWARE_MATCH_ERROR
      static final DJIRemoteControllerError FIRMWARE_MATCH_ERROR= new DJIRemoteControllerError("Firmware match error")
      Package:dji.common.error
      Description:

      The firmware does not matched.

      final FLASH_FLUSHING
      static final DJIRemoteControllerError FLASH_FLUSHING= new DJIRemoteControllerError("Firmware flushing")
      Package:dji.common.error
      Description:

      The flash is flushing.

      Inherited Methods:
      dji.common.error.DJIError
      method
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Returns the specific error in the DJIFlightHubError according to the error code.

      Input Parameters:
      int errorCodeerrorCode for DJIFlightHubError.
      Return:
      static DJIErrorAn NSError object initialized with errorCode. If the errorCode was 0, returns nil.
      method getDescription
      String getDescription()
      Package:dji.common.error
      Description:

      Returns the description of the error code.

      Return:
      StringThe description of the error code.
      method setDescription
      void setDescription(String desc)
      Package:dji.common.error
      Description:

      Sets the description for the error code.

      Input Parameters:
      String descDescription string.