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  Sendableobject. | 
| 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, setDefaultSolenoidModulepublic 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()
SendableSendable.getSmartDashboardType in interface SendableSendable.public void initTable(ITable subtable)
SendableSendable object.public ITable getTable()
SendableSendable.public void updateTable()
LiveWindowSendableupdateTable in interface LiveWindowSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendable