java.lang.Object | |
↳ | dji.common.battery.DJIBatteryWarningInformation |
This class is used to keep a record of any unusual status for the battery
in the past 30 discharge. For all the properties below, monitor these values frequently to ensure the
battery's state is normal. If any of the properties below indicate there is an issue with the battery, we
recommend notifying the user.
NOTE: No automatic action will be taken if any of the properties below return true
,
which is why it is imperative the user is notified of the issue.
These states are not supported by Osmo.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DJIBatteryWarningInformation(boolean currentOverload, boolean overHeating, boolean lowTemperature, boolean shortCircuit, boolean customDischargeEnabled, short underVoltageBatteryCellIndex, short damagedBatteryCellIndex) | |||||||||||
DJIBatteryWarningInformation(long data)
For get data
| |||||||||||
DJIBatteryWarningInformation(int data)
For push data
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short |
getDamagedBatteryCellIndex()
Returns the index at which one of the cells in the battery is damaged.
| ||||||||||
short |
getUnderVoltageBatteryCellIndex()
Returns the index at which one of the cells in the battery is below the normal voltage.
| ||||||||||
boolean |
hasError()
Description : Has error
| ||||||||||
boolean |
isCurrentOverload()
true if the battery should be discharged due to a current overload. | ||||||||||
boolean |
isCustomDischargeEnabled()
true if the battery has been configured to be discharged over a specific
number of days. | ||||||||||
boolean |
isLowTemperature()
true if the battery should be discharged due to a low temperature. | ||||||||||
boolean |
isOverHeating()
true if the battery should be discharged due to being overheated. | ||||||||||
boolean |
isShortCircuit()
true if the battery should be discharged due to being short circuited. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
For get data
For push data
Returns the index at which one of the cells in the battery is damaged. The first cell has an index of 1. 0 represents no damaged battery cells. The Phantom 3 Series have 4 cell batteries. The Inspire series and M100 have 6 cell batteries.
Returns the index at which one of the cells in the battery is below the normal voltage. The first cell has an index of 1. 0 represents no battery cells under voltage. The Phantom 3 Series have 4 cell batteries. The Inspire series and M100 have 6 cell batteries.
Description : Has error
true
if the battery should be discharged due to a current overload.
true
if the battery has been configured to be discharged over a specific
number of days. Once the battery is fully charged again, the battery will discharge
over the number of days set here again. This process is cyclical.
true
if the battery should be discharged due to a low temperature.
true
if the battery should be discharged due to being overheated.
true
if the battery should be discharged due to being short circuited.