public class

DJIBatteryWarningInformation

extends Object
java.lang.Object
   ↳ dji.common.battery.DJIBatteryWarningInformation

Class Overview

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.

Summary

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

Public Constructors

public DJIBatteryWarningInformation (boolean currentOverload, boolean overHeating, boolean lowTemperature, boolean shortCircuit, boolean customDischargeEnabled, short underVoltageBatteryCellIndex, short damagedBatteryCellIndex)

public DJIBatteryWarningInformation (long data)

For get data

public DJIBatteryWarningInformation (int data)

For push data

Public Methods

public short getDamagedBatteryCellIndex ()

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.

public short getUnderVoltageBatteryCellIndex ()

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.

public boolean hasError ()

Description : Has error

Returns
  • true if has any error;

public boolean isCurrentOverload ()

true if the battery should be discharged due to a current overload.

public boolean isCustomDischargeEnabled ()

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.

public boolean isLowTemperature ()

true if the battery should be discharged due to a low temperature.

public boolean isOverHeating ()

true if the battery should be discharged due to being overheated.

public boolean isShortCircuit ()

true if the battery should be discharged due to being short circuited.