PowerDistributionPanel

class wpilib.PowerDistributionPanel[source]

Bases: wpilib.SensorBase

Use to obtain voltage, current, temperature, power, and energy from the CAN PDP

The PDP must be at CAN Address 0

clearStickyFaults()[source]

Clear all pdp sticky faults

getCurrent(channel)[source]

Query the current of a single channel of the PDP

Returns:The current of one of the PDP channels (channels 0-15) in Amperes
Return type:float
getTemperature()[source]

Query the temperature of the PDP

Returns:The temperature of the PDP in degrees Celsius
Return type:float
getTotalCurrent()[source]

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

Returns:The total current drawn from the PDP channels in Amperes
Return type:float
getTotalEnergy()[source]

Query the total energy drawn from the monitored PDP channels

Returns:The total energy drawn from the PDP channels in Joules
Return type:float
getTotalPower()[source]

Query the total power drawn from the monitored PDP channels

Returns:The total power drawn from the PDP channels in Watts
Return type:float
getVoltage()[source]

Query the voltage of the PDP

Returns:The voltage of the PDP in volts
Return type:float
resetTotalEnergy()[source]

Reset the total energy to 0