DJI Mobile SDK Documentation

      class BaseStationBatteryState

      class BaseStationBatteryState
      Package:dji.common.flightcontroller.rtk
      Description:

      RTK Base Station Current Battery State. Only Supported by Phantom 4 RTK.

      Class Members:
      method getVoltage
      int getVoltage()
      Package:dji.common.flightcontroller.rtk
      Description:

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

      Return:
      intAn int value of the current RTK base station battery voltage.
      method getCurrent
      int getCurrent()
      Package:dji.common.flightcontroller.rtk
      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.
      method getTemperature
      int getTemperature()
      Package:dji.common.flightcontroller.rtk
      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.flightcontroller.rtk
      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.
      interface
      interface Callback
      interface Callback
      Package:dji.common.flightcontroller.rtk
      Description:

      Callback Interface for RTK Base Station Battery State.

      Interface Methods:
      method onUpdateBaseStationBatteryState
      void onUpdateBaseStationBatteryState(BaseStationBatteryState state)
      Package:dji.common.flightcontroller.rtk
      Description:

      Callback function that updates the RTK base station battery state.

      Input Parameters:
      BaseStationBatteryState stateBase Station Battery State.