public class PowerDistributionPanel extends SensorBase implements LiveWindowSendable
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond
Constructor and Description |
---|
PowerDistributionPanel() |
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
|
String |
getSmartDashboardType() |
edu.wpi.first.wpilibj.tables.ITable |
getTable() |
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(edu.wpi.first.wpilibj.tables.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, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, free, getDefaultSolenoidModule, setDefaultSolenoidModule
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 String getSmartDashboardType()
getSmartDashboardType
in interface Sendable
public void initTable(edu.wpi.first.wpilibj.tables.ITable subtable)
public edu.wpi.first.wpilibj.tables.ITable getTable()
public void updateTable()
updateTable
in interface LiveWindowSendable
public void startLiveWindowMode()
startLiveWindowMode
in interface LiveWindowSendable
public void stopLiveWindowMode()
stopLiveWindowMode
in interface LiveWindowSendable
Copyright © 2015. All rights reserved.