public class

DJIBatteryError

extends DJIError
java.lang.Object
   ↳ dji.common.error.DJIError
     ↳ dji.common.error.DJIBatteryError

Class Overview

Defines all battery related errors

Summary

Fields
public static final DJIBatteryError BATTERY_GET_SMART_BATTERY_INFO_FAILED Get smart battery failure information.
public static final DJIBatteryError UPDATE_WRONG The update process is wrong.
[Expand]
Inherited Fields
From class dji.common.error.DJIError
Public Constructors
DJIBatteryError()
Public Methods
static DJIError getDJIError(Ccode ccode)
String getDescription()
Returns the description of the error code.
void setDescription(String desc)
Sets the description for the error code.
[Expand]
Inherited Methods
From class dji.common.error.DJIError
From class java.lang.Object

Fields

public static final DJIBatteryError BATTERY_GET_SMART_BATTERY_INFO_FAILED

Get smart battery failure information. This error is returned by functions when retrieving failure information for the DJIPhantomBattery and DJIAircraftBattery, including:
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)

public static final DJIBatteryError UPDATE_WRONG

The update process is wrong.

Public Constructors

public DJIBatteryError ()

Public Methods

public static DJIError getDJIError (Ccode ccode)

public String getDescription ()

Returns the description of the error code.

public void setDescription (String desc)

Sets the description for the error code.