12 #include "frc/ErrorBase.h"
13 #include "frc/smartdashboard/SendableBase.h"
86 HAL_PDPHandle m_handle = HAL_kInvalidHandle;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
double GetVoltage() const
Query the input voltage of the PDP.
double GetTemperature() const
Query the temperature of the PDP.
double GetTotalCurrent() const
Query the total current of all monitored PDP channels (0-15).
double GetTotalEnergy() const
Query the total energy drawn from the monitored PDP channels.
double GetTotalPower() const
Query the total power drawn from the monitored PDP channels.
Base class for most objects.
Definition: ErrorBase.h:74
Definition: SendableBase.h:19
void ClearStickyFaults()
Remove all of the fault flags on the PDP.
Definition: SendableBuilder.h:23
double GetCurrent(int channel) const
Query the current of a single channel of the PDP.
Class for getting voltage, current, temperature, power and energy from the CAN PDP.
Definition: PowerDistributionPanel.h:21
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
void ResetTotalEnergy()
Reset the total energy drawn from the PDP.