VEX V5 Python API
|
Public Member Functions | |
def | __init__ (self, parent) |
Use the battery class to see information about the battery. More... | |
def | capacity (self, percentUnits=PercentUnits.PCT) |
Get the batteries capacity. More... | |
def | temperature (self, temperatureUnits=TemperatureUnits.CELSIUS) |
Gets the battery temperature. More... | |
def | voltage (self, voltageUnits=VoltageUnits.VOLT) |
Gets the battery voltage. More... | |
def | current (self, currentUnits=CurrentUnits.AMP) |
Gets the battery current. More... | |
def vex.BrainBattery.__init__ | ( | self, | |
parent | |||
) |
Use the battery class to see information about the battery.
def vex.BrainBattery.capacity | ( | self, | |
percentUnits = PercentUnits.PCT |
|||
) |
Get the batteries capacity.
percentUnits | The type of unit that should be returned. |
def vex.BrainBattery.temperature | ( | self, | |
temperatureUnits = TemperatureUnits.CELSIUS |
|||
) |
Gets the battery temperature.
temperatureUnits | The type of unit that should be returned. |
def vex.BrainBattery.voltage | ( | self, | |
voltageUnits = VoltageUnits.VOLT |
|||
) |
Gets the battery voltage.
voltageUnits | The unit of voltage to be returned. |
def vex.BrainBattery.current | ( | self, | |
currentUnits = CurrentUnits.AMP |
|||
) |
Gets the battery current.
currentUnits | The type of current to be returned. |