| java.lang.Object | ||
| ↳ | dji.common.error.DJIError | |
| ↳ | dji.common.error.DJIBatteryError | |
Defines all battery related errors
| 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
| |||||||||||
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)
Returns the description of the error code.
Sets the description for the error code.