ControllerPower

class wpilib.ControllerPower[source]

Bases: object

Provides access to power levels on the roboRIO

static getCurrent3V3()[source]

Get the current output of the 3.3V rail

Returns:The controller 3.3V rail output current value in Amps
Return type:float
static getCurrent5V()[source]

Get the current output of the 5V rail

Returns:The controller 5V rail output current value in Amps
Return type:float
static getCurrent6V()[source]

Get the current output of the 6V rail

Returns:The controller 6V rail output current value in Amps
Return type:float
static getEnabled3V3()[source]

Get the enabled state of the 3.3V rail. The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage

Returns:True if enabled, False otherwise
Return type:bool
static getEnabled5V()[source]

Get the enabled state of the 5V rail. The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage

Returns:True if enabled, False otherwise
Return type:bool
static getEnabled6V()[source]

Get the enabled state of the 6V rail. The rail may be disabled due to a controller brownout, a short circuit on the rail, or controller over-voltage

Returns:True if enabled, False otherwise
Return type:bool
static getFaultCount3V3()[source]

Get the count of the total current faults on the 3.3V rail since the controller has booted

Returns:The number of faults
Return type:int
static getFaultCount5V()[source]

Get the count of the total current faults on the 5V rail since the controller has booted

Returns:The number of faults
Return type:int
static getFaultCount6V()[source]

Get the count of the total current faults on the 6V rail since the controller has booted

Returns:The number of faults
Return type:int
static getInputCurrent()[source]

Get the input current to the robot controller

Returns:The controller input current value in Amps
Return type:float
static getInputVoltage()[source]

Get the input voltage to the robot controller

Returns:The controller input voltage value in Volts
Return type:float
static getVoltage3V3()[source]

Get the voltage of the 3.3V rail

Returns:The controller 3.3V rail voltage value in Volts
Return type:float
static getVoltage5V()[source]

Get the voltage of the 5V rail

Returns:The controller 5V rail voltage value in Volts
Return type:float
static getVoltage6V()[source]

Get the voltage of the 6V rail

Returns:The controller 6V rail voltage value in Volts
Return type:float