10 #include <hal/Types.h>
12 #include "frc/ErrorBase.h"
13 #include "frc/smartdashboard/Sendable.h"
14 #include "frc/smartdashboard/SendableHelper.h"
18 class SendableBuilder;
91 hal::Handle<HAL_PDPHandle> m_handle;
double GetTotalCurrent() const
Query the total current of all monitored PDP channels (0-15).
void ResetTotalEnergy()
Reset the total energy drawn from the PDP.
double GetTotalPower() const
Query the total power drawn from the monitored PDP channels.
double GetVoltage() const
Query the input voltage of the PDP.
Class for getting voltage, current, temperature, power and energy from the CAN PDP.
Definition: PowerDistributionPanel.h:24
Base class for most objects.
Definition: ErrorBase.h:104
double GetTemperature() const
Query the temperature of the PDP.
void ClearStickyFaults()
Remove all of the fault flags on the PDP.
double GetCurrent(int channel) const
Query the current of a single channel of the PDP.
Interface for Sendable objects.
Definition: Sendable.h:17
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
double GetTotalEnergy() const
Query the total energy drawn from the monitored PDP channels.
Definition: SendableBuilder.h:23