PowerDistributionPanel¶
-
class
wpilib.
PowerDistributionPanel
(module=0)[source]¶ Bases:
wpilib.SensorBase
Use to obtain voltage, current, temperature, power, and energy from the Power Distribution Panel over CAN
Parameters: module (int) – CAN ID of the PDP -
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
-