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.

      final OWNER_OFFLINE_ERROR
      static final DJIRemoteControllerError OWNER_OFFLINE_ERROR = new DJIRemoteControllerError("The current rc is offline")
      Package:dji.common.error
      Description:

      Owner offline.

      final DEVICE_OFFLINE_ERROR
      static final DJIRemoteControllerError DEVICE_OFFLINE_ERROR = new DJIRemoteControllerError("The device to get permission is offline")
      Package:dji.common.error
      Description:

      Device offline.

      final IS_OWNER_ERROR
      static final DJIRemoteControllerError IS_OWNER_ERROR = new DJIRemoteControllerError("Already have control permissions for this device")
      Package:dji.common.error
      Description:

      Is owner.

      final DEVICE_LOCKED_ERROR
      static final DJIRemoteControllerError DEVICE_LOCKED_ERROR= new DJIRemoteControllerError("The device to get permission is locked")
      Package:dji.common.error
      Description:

      Device locked.

      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 getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.sdk.utmiss
      Description:

      Get DJIUTMISSError.

      Input Parameters:
      int errorCodeAn int value of error code.
      Return:
      static DJIErrorAn object of DJIError.
      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.