public class

DJIBatteryOverview

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

Class Overview

Provides an overview of a battery - used when multiple batteries are deployed on one product.

Summary

Public Constructors
DJIBatteryOverview()
Public Methods
int getEnergyRemainingPercent()
The remaining percentage energy of the battery with range [0,100].
int getIndex()
Index of the battery.
boolean isConnected()
true if the battery is currently connected to the aircraft.
void setEnergyRemainingPercent(int energyRemainingPercent)
void setIndex(int index)
void setIsConnected(boolean isConnected)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJIBatteryOverview ()

Public Methods

public int getEnergyRemainingPercent ()

The remaining percentage energy of the battery with range [0,100].

public int getIndex ()

Index of the battery. Index starts from 0. For Matrice 600, the number 1 battery compartment relates to index 0.

public boolean isConnected ()

true if the battery is currently connected to the aircraft.

public void setEnergyRemainingPercent (int energyRemainingPercent)

public void setIndex (int index)

public void setIsConnected (boolean isConnected)