PowerDistributionPanel

class wpilib.PowerDistributionPanel(*args, **kwargs)

Bases: wpilib.ErrorBase, wpilib.Sendable

Class for getting voltage, current, temperature, power and energy from the CAN PDP.

Overloaded function.

  1. __init__(self: wpilib._wpilib.PowerDistributionPanel) -> None

  2. __init__(self: wpilib._wpilib.PowerDistributionPanel, module: int) -> None

clearStickyFaults(self: wpilib.PowerDistributionPanel) → None

Remove all of the fault flags on the PDP.

getCurrent(self: wpilib.PowerDistributionPanel, channel: int) → float

Query the current of a single channel of the PDP.

Returns

The current of one of the PDP channels (channels 0-15) in Amperes

getModule(self: wpilib.PowerDistributionPanel) → int

Gets module number (CAN ID).

getTemperature(self: wpilib.PowerDistributionPanel) → float

Query the temperature of the PDP.

Returns

The temperature of the PDP in degrees Celsius

getTotalCurrent(self: wpilib.PowerDistributionPanel) → float

Query the total current of all monitored PDP channels (0-15).

Returns

The the total current drawn from the PDP channels in Amperes

getTotalEnergy(self: wpilib.PowerDistributionPanel) → float

Query the total energy drawn from the monitored PDP channels.

Returns

The the total energy drawn from the PDP channels in Joules

getTotalPower(self: wpilib.PowerDistributionPanel) → float

Query the total power drawn from the monitored PDP channels.

Returns

The the total power drawn from the PDP channels in Watts

getVoltage(self: wpilib.PowerDistributionPanel) → float

Query the input voltage of the PDP.

Returns

The voltage of the PDP in volts

initSendable(self: wpilib.PowerDistributionPanel, builder: wpilib.SendableBuilder) → None
resetTotalEnergy(self: wpilib.PowerDistributionPanel) → None

Reset the total energy drawn from the PDP.

@see PowerDistributionPanel#GetTotalEnergy