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
Package: dji.common.flightcontroller.rtk
Description:
Returns the current RTK base station battery voltage (mV).
Return:
int An int value of the current RTK base station battery voltage.
method getCurrent
Package: dji.common.flightcontroller.rtk
Description:
Returns the real time current draw of the RTK base station battery (mA).
Return:
int An int value of the current draw of the RTK base station battery.
method getTemperature
Package: dji.common.flightcontroller.rtk
Description:
Returns the current RTK base station battery's temperature, in Celsius, with range [-128, 127] degrees.
Return:
int An int value of the current RTK base station battery's temperature.
method 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:
int An int value of the battery's remaining lifetime as a percentage.
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.