| java.lang.Object | ||
| ↳ | dji.sdk.base.DJIError | |
| ↳ | dji.sdk.base.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.sdk.base.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.sdk.base.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.