pilot.BatteryState

Class

BatteryState contains information regarding the platform’s batteries.

Inherits from pilot.Sample.

Fields

float remaining

Percentage of charge remaining, from 0 to 1.

float voltage

Battery voltage in [V].

float current

Battery current, positive = charging, in [A].

float temperature

Battery temperatue in [C].

battery_type_e type

Battery type, see pilot.battery_type_e.