DJI Mobile SDK Documentation

      class BatteryOverview

      @EXClassNullAway
      class BatteryOverview
      Package:dji.common.battery
      SDK Key:BatteryKey.OVERVIEWS
      Description:

      Provides an overview of a battery when aircraft is using multiple batteries.

      Class Members:

      Battery Properties

      General
      method
      method getIndex
      int getIndex()
      Package:dji.common.battery
      Description:

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

      Return:
      intAn int value.
      method isConnected
      boolean isConnected()
      Package:dji.common.battery
      Description:

      true if the battery is currently connected to the aircraft.

      Return:
      booleanA boolean value.
      method getChargeRemainingInPercent
      int getChargeRemainingInPercent()
      Package:dji.common.battery
      Description:

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

      Return:
      intAn int value.