public class PowerDistributionPanel extends SensorBase implements Sendable
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond
Constructor and Description |
---|
PowerDistributionPanel()
Constructor.
|
PowerDistributionPanel(int module)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearStickyFaults()
Clear all PDP sticky faults.
|
double |
getCurrent(int channel)
Query the current of a single channel of the PDP.
|
double |
getTemperature()
Query the temperature of the PDP.
|
double |
getTotalCurrent()
Query the current of all monitored PDP channels (0-15).
|
double |
getTotalEnergy()
Query the total energy drawn from the monitored PDP channels.
|
double |
getTotalPower()
Query the total power drawn from the monitored PDP channels.
|
double |
getVoltage()
Query the input voltage of the PDP.
|
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
void |
resetTotalEnergy()
Reset the total energy to 0.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModule
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getSubsystem, setName, setName, setSubsystem
public PowerDistributionPanel(int module)
module
- The CAN ID of the PDPpublic PowerDistributionPanel()
public double getVoltage()
public double getTemperature()
public double getCurrent(int channel)
public double getTotalCurrent()
public double getTotalPower()
public double getTotalEnergy()
public void resetTotalEnergy()
public void clearStickyFaults()
public void initSendable(SendableBuilder builder)
Sendable
Sendable
object.initSendable
in interface Sendable
builder
- sendable builder