public class

DJIError

extends Object
java.lang.Object
   ↳ dji.sdk.base.DJIError
Known Direct Subclasses

Class Overview

Class that handles all errors that are not handled by individual components.

Summary

Fields
public static final DJIError BATTERY_GET_SMART_BATTERY_INFO_FAILED Get smart battery information failed.
public static final DJIError COMMAND_NOT_SUPPORTED_BY_FIRMWARE The command is not supported by the current firmware version.
public static final DJIError COMMON_DISCONNECTED Disconnected error.
public static final DJIError COMMON_PARAM_ILLEGAL Illegal parameters.
public static final DJIError COMMON_TIMEOUT Execution timeout.
public static final DJIError COMMON_UNDEFINED Undefined error.
public static final DJIError COMMON_UNKNOWN Catch all for various errors
public static final DJIError COMMON_UNSUPPORTED Unsupported feature.
public static final DJIError FIRMWARE_CRC_WRONG Inspire only.
public static final DJIError FIRMWARE_LENGTH_WRONG The file size of the firmware is invalid.
public static final DJIError FIRMWARE_MATCH_WRONG There is a firmware match error.
public static final DJIError FIRMWARE_NON_SEQUENCE Inspire only.
public static final DJIError FLASH_CLEAR_WRONG The clear action of the flash is invalid.
public static final DJIError FLASH_FLUSHING The flash is flushing.
public static final DJIError FLASH_WRITE_WRONG The write action of the flash is invalid.
public static final DJIError IMAGE_TRANSMITTER_INVALID_PARAMETER The input parameters is out of bound or invalid.
public static final DJIError MEDIA_INVALID_REQUEST_TYPE The media download request type is invalid.
public static final DJIError MEDIA_NO_SUCH_FILE Media download error: no such file.
public static final DJIError MEDIA_REQUEST_CLIENT_ABORT Media download error: the client aborted the downloading
public static final DJIError MEDIA_REQUEST_DISCONNECT Result of media downloading: the downloading link disconnects
public static final DJIError MEDIA_REQUEST_SERVER_ABORT Media download error: the server aborted the downloading
public static final DJIError UNABLE_TO_GET_FIRMWARE_VERSION Unable to get the firmware version.
public static final DJIError UPDATE_WRONG The update process is invalid.
Public Methods
static DJIError getDJIError(Ccode ccode)
Returns common error according to the error code.
String getDescription()
Returns the description of the error code.
static DJIError getDjiError(DJIAlbumPullErrorType code)
void setDescription(String desc)
Sets the description for the error code.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final DJIError BATTERY_GET_SMART_BATTERY_INFO_FAILED

Get smart battery information failed.
This error will be returned by the functions for getting information in DJIPhantomBattery and DJIAircraftBattery when the request to get information failed.

public void getSmartBatteryRestTimeForAll(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryNeedTimeForGoHome(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryNeedTimeForLand(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryGohomeBatteryLevel(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryLandBatteryLevel(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryRadiusForGohome(DJISmartBatteryExecuteResultCallback mCallBack)
public void getSmartBatteryRequestGohomeFlag(DJISmartBatteryExecuteResultCallback mCallBack)

See Also
  • dji.sdk.api.Battery.DJIPhantomBattery
  • dji.sdk.api.Battery.DJIInspireBattery
  • dji.sdk.DJIAircraftBattery.Battery.DJIInspireBattery
  • dji.sdk.interfaces.DJISmartBatteryExecuteResultCallback

public static final DJIError COMMAND_NOT_SUPPORTED_BY_FIRMWARE

The command is not supported by the current firmware version.

public static final DJIError COMMON_DISCONNECTED

Disconnected error.
This error will be returned by the function for some special interface when the DJI product is not connected to the mobile device.

public static final DJIError COMMON_PARAM_ILLEGAL

Illegal parameters.
This error will be returned by the function for setting camera parameters in DJIPhantomCamera and DJIInspireCamera, when illegal parameters are used.

See Also
  • dji.sdk.api.Camera.DJIPhantomCamera
  • dji.sdk.api.Camera.DJIInspireCamera

public static final DJIError COMMON_TIMEOUT

Execution timeout.
This error will be returned when the execution times out.

public void sendDataToExternalDevice(byte[] data,final DJIExecuteResultCallback mCallBack)
public void setMultiControlMode(boolean value,final DJIExecuteResultCallback mCallBack)

See Also
  • dji.sdk.api.Camera.DJIInspireCamera
  • dji.sdk.api.MainController.DJIInspireMainController#sendDataToExternalDevice(byte[], DJIExecuteResultCallback)
  • dji.sdk.api.MainController.DJIInspireMainController#setMultiControlMode(boolean, DJIExecuteResultCallback)

public static final DJIError COMMON_UNDEFINED

Undefined error.
This error will be returned when the error is undefined.

public void setMultiControlMode(boolean value,final DJIExecuteResultCallback mCallBack)

See Also
  • dji.sdk.api.Camera.DJIInspireCamera
  • dji.sdk.api.MainController.DJIInspireMainController#setMultiControlMode(boolean, DJIExecuteResultCallback)

public static final DJIError COMMON_UNKNOWN

Catch all for various errors

public static final DJIError COMMON_UNSUPPORTED

Unsupported feature.
This error will be returned by the function for some special feature interface when the feature isn't supported by the device.

public static final DJIError FIRMWARE_CRC_WRONG

Inspire only.
The check number of the firmware is invalid.

public static final DJIError FIRMWARE_LENGTH_WRONG

The file size of the firmware is invalid.

public static final DJIError FIRMWARE_MATCH_WRONG

There is a firmware match error.

public static final DJIError FIRMWARE_NON_SEQUENCE

Inspire only.
The sequence number of firmware is not continuous.

public static final DJIError FLASH_CLEAR_WRONG

The clear action of the flash is invalid.

public static final DJIError FLASH_FLUSHING

The flash is flushing.

public static final DJIError FLASH_WRITE_WRONG

The write action of the flash is invalid.

public static final DJIError IMAGE_TRANSMITTER_INVALID_PARAMETER

The input parameters is out of bound or invalid.

public static final DJIError MEDIA_INVALID_REQUEST_TYPE

The media download request type is invalid.

public static final DJIError MEDIA_NO_SUCH_FILE

Media download error: no such file.

public static final DJIError MEDIA_REQUEST_CLIENT_ABORT

Media download error: the client aborted the downloading

public static final DJIError MEDIA_REQUEST_DISCONNECT

Result of media downloading: the downloading link disconnects

public static final DJIError MEDIA_REQUEST_SERVER_ABORT

Media download error: the server aborted the downloading

public static final DJIError UNABLE_TO_GET_FIRMWARE_VERSION

Unable to get the firmware version. Note: The sdk SDK pull the firmware version table from the server. Ensure Internet connectivity before you invoke getVersion().

public static final DJIError UPDATE_WRONG

The update process is invalid.

Public Methods

public static DJIError getDJIError (Ccode ccode)

Returns common error according to the error code.

public String getDescription ()

Returns the description of the error code.

public static DJIError getDjiError (DJIAlbumPullErrorType code)

public void setDescription (String desc)

Sets the description for the error code.