From 23ef57561d40437aa066a55dc99859d47e5b99c8 Mon Sep 17 00:00:00 2001 From: Austin Shalit Date: Thu, 20 Oct 2016 01:34:57 -0400 Subject: [PATCH] Cleanup PowerDistributionPanel (#275) --- .../wpi/first/wpilibj/PowerDistributionPanel.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/PowerDistributionPanel.java b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/PowerDistributionPanel.java index 8cd6c28bdf..d6d517034c 100644 --- a/wpilibj/src/athena/java/edu/wpi/first/wpilibj/PowerDistributionPanel.java +++ b/wpilibj/src/athena/java/edu/wpi/first/wpilibj/PowerDistributionPanel.java @@ -12,25 +12,31 @@ import edu.wpi.first.wpilibj.livewindow.LiveWindowSendable; import edu.wpi.first.wpilibj.tables.ITable; /** - * Class for getting voltage, current, temperature, power and energy from the CAN PDP. + * Class for getting voltage, current, temperature, power and energy from the Power Distribution + * Panel over CAN. */ public class PowerDistributionPanel extends SensorBase implements LiveWindowSendable { private final int m_module; - @SuppressWarnings("JavadocMethod") + /** + * Constructor. + * + * @param module The CAN ID of the PDP + */ public PowerDistributionPanel(int module) { m_module = module; checkPDPModule(module); PDPJNI.initializePDP(module); } - @SuppressWarnings("JavadocMethod") + /** + * Constructor. Uses the default CAN ID (0). + */ public PowerDistributionPanel() { this(0); } - /** * Query the input voltage of the PDP. *