13 #include "LiveWindow/LiveWindowSendable.h"
14 #include "SensorBase.h"
40 void InitTable(std::shared_ptr<ITable> subTable)
override;
41 std::shared_ptr<ITable>
GetTable()
const override;
44 std::shared_ptr<ITable> m_table;
double GetVoltage() const
Query the input voltage of the PDP.
Definition: PowerDistributionPanel.cpp:41
std::shared_ptr< ITable > GetTable() const override
Definition: PowerDistributionPanel.cpp:209
double GetCurrent(int channel) const
Query the current of a single channel of the PDP.
Definition: PowerDistributionPanel.cpp:75
Live Window Sendable is a special type of object sendable to the live window.
Definition: LiveWindowSendable.h:17
Base class for all sensors.
Definition: SensorBase.h:20
void InitTable(std::shared_ptr< ITable > subTable) override
Initializes a table for this sendable object.
Definition: PowerDistributionPanel.cpp:204
double GetTemperature() const
Query the temperature of the PDP.
Definition: PowerDistributionPanel.cpp:58
void ResetTotalEnergy()
Reset the total energy drawn from the PDP.
Definition: PowerDistributionPanel.cpp:150
void ClearStickyFaults()
Remove all of the fault flags on the PDP.
Definition: PowerDistributionPanel.cpp:163
std::string GetSmartDashboardType() const override
Definition: PowerDistributionPanel.cpp:200
void StopLiveWindowMode() override
Stop having this sendable object automatically respond to value changes.
Definition: PowerDistributionPanel.cpp:198
double GetTotalPower() const
Query the total power drawn from the monitored PDP channels.
Definition: PowerDistributionPanel.cpp:116
double GetTotalCurrent() const
Query the total current of all monitored PDP channels (0-15).
Definition: PowerDistributionPanel.cpp:99
void UpdateTable() override
Update the table for this sendable object with the latest values.
Definition: PowerDistributionPanel.cpp:173
Class for getting voltage, current, temperature, power and energy from the CAN PDP.
Definition: PowerDistributionPanel.h:22
void StartLiveWindowMode() override
Start having this sendable object automatically respond to value changes reflect the value on the tab...
Definition: PowerDistributionPanel.cpp:196
double GetTotalEnergy() const
Query the total energy drawn from the monitored PDP channels.
Definition: PowerDistributionPanel.cpp:133