Add PDP to LiveWindow for C++

Change-Id: I45967739b81090e809b9e8f1c31ad7ff58554ec1
This commit is contained in:
Joe Ross
2014-12-30 12:02:13 -08:00
parent 91b9812482
commit ceccd95084
2 changed files with 55 additions and 1 deletions

View File

@@ -9,12 +9,13 @@
#define __WPILIB_POWER_DISTRIBUTION_PANEL_H__
#include "SensorBase.h"
#include "LiveWindow/LiveWindowSendable.h"
/**
* Class for getting voltage, current, and temperature from the CAN PDP
* @author Thomas Clark
*/
class PowerDistributionPanel : public SensorBase {
class PowerDistributionPanel : public SensorBase, public LiveWindowSendable {
public:
PowerDistributionPanel();
@@ -26,6 +27,16 @@ class PowerDistributionPanel : public SensorBase {
double GetTotalEnergy();
void ResetTotalEnergy();
void ClearStickyFaults();
void UpdateTable();
void StartLiveWindowMode();
void StopLiveWindowMode();
std::string GetSmartDashboardType();
void InitTable(ITable *subTable);
ITable * GetTable();
private:
ITable *m_table;
};
#endif /* __WPILIB_POWER_DISTRIBUTION_PANEL_H__ */