Battery
Inheritted classes
This component inherits classes. The following inherrited classes are:
A PowerComponent that can store power with a limited discharge and charge rate.
Functions
getPower
Battery.getPower()
Returns the total power output of the battery.
Returns:
- [ number ] The total power output.
getUsedPower
Battery.getUsedPower()
Returns the total power the output is using.
Returns:
- [ number ] The total used power output.
getCharge
Battery.getCharge()
Returns the current stored charge inside of the battery.
Returns:
- [ number ] The battery charge.
getChargeDelta
Battery.getChargeDelta()
Returns the baeetries charge delta. The charge delta is a number that shows how much power the battery is gaining / losing in total.
Returns:
- [ number ] The battery charge delta.