DJI Mobile SDK Documentation

      class BaseStationBatteryState

      class BaseStationBatteryState
      Package:dji.common.basestation
      Description:

      RTK Base Station Current Battery State.

      Class Members:
      voltage
      method
      method getVoltage
      int getVoltage()
      Package:dji.common.basestation
      Description:

      Returns the current RTK base station battery voltage (mV).

      Return:
      intAn int value of the current RTK base station battery voltage.
      current
      method
      method getCurrent
      int getCurrent()
      Package:dji.common.basestation
      Description:

      Returns the real time current draw of the RTK base station battery (mA).

      Return:
      intAn int value of the current draw of the RTK base station battery.
      temperature
      method
      method getTemperature
      int getTemperature()
      Package:dji.common.basestation
      Description:

      Returns the current RTK base station battery's temperature, in Celsius, with range [-128, 127] degrees.

      Return:
      intAn int value of the current RTK base station battery's temperature.
      method getCapacityPercent
      int getCapacityPercent()
      Package:dji.common.basestation
      Description:

      Returns the battery's remaining lifetime as a percentage, with range [0, 100]. A new battery will be close to 100%. As a battery experiences charge/discharge cycles, the value will go down.

      Return:
      intAn int value of the battery's remaining lifetime as a percentage.
      State Updates
      interface
      interface Callback
      interface Callback
      Package:dji.common.basestation
      Description:

      Callback Interface for RTK Base Station Battery State.

      Interface Methods:

      Callback Method

      method onUpdateBaseStationBatteryState
      void onUpdateBaseStationBatteryState(BaseStationBatteryState state)
      Package:dji.common.basestation
      Description:

      Callback function that updates the RTK base station battery state. Only Supported by Phantom 4 RTK and M200 series v2.

      Input Parameters:
      BaseStationBatteryState stateBase Station Battery State.