blueye.sdk.battery
battery
Battery
Battery(parent_drone: Drone)
Contains the battery related functions.
Parameters:
-
parent_drone(Drone) –The parent drone instance.
Source code in blueye/sdk/battery.py
17 18 19 20 21 22 | |
get_state_of_charge
get_state_of_charge() -> Optional[float]
Get the battery state of charge.
Returns:
-
Optional[float]–Current state of charge of the drone battery (0..1).
Source code in blueye/sdk/battery.py
24 25 26 27 28 29 30 31 32 33 34 | |