public class PowerDistributionPanel extends SensorBase implements LiveWindowSendable
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.
|
java.lang.String |
getSmartDashboardType()
The string representation of the named data type that will be used by the smart dashboard for
this
Sendable . |
ITable |
getTable()
The table that is associated with this
Sendable . |
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 |
initTable(ITable subtable)
Initializes a table for this
Sendable object. |
void |
resetTotalEnergy()
Reset the total energy to 0.
|
void |
startLiveWindowMode()
PDP doesn't have to do anything special when entering the LiveWindow.
|
void |
stopLiveWindowMode()
PDP doesn't have to do anything special when exiting the LiveWindow.
|
void |
updateTable()
Update the table for this sendable object with the latest values.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, free, getDefaultSolenoidModule, setDefaultSolenoidModule
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 java.lang.String getSmartDashboardType()
Sendable
Sendable
.getSmartDashboardType
in interface Sendable
Sendable
.public void initTable(ITable subtable)
Sendable
Sendable
object.public ITable getTable()
Sendable
Sendable
.public void updateTable()
LiveWindowSendable
updateTable
in interface LiveWindowSendable
public void startLiveWindowMode()
startLiveWindowMode
in interface LiveWindowSendable
public void stopLiveWindowMode()
stopLiveWindowMode
in interface LiveWindowSendable