15 #include "Commands/Scheduler.h" 16 #include "LiveWindow/LiveWindowSendable.h" 17 #include "networktables/NetworkTable.h" 18 #include "networktables/NetworkTableEntry.h" 23 std::string subsystem;
25 bool isSensor =
false;
29 this->subsystem = subsystem;
31 this->isSensor = isSensor;
44 void AddSensor(
const std::string& subsystem,
const std::string& name,
46 void AddSensor(
const std::string& subsystem,
const std::string& name,
48 void AddSensor(
const std::string& subsystem,
const std::string& name,
49 std::shared_ptr<LiveWindowSendable> component);
50 void AddActuator(
const std::string& subsystem,
const std::string& name,
52 void AddActuator(
const std::string& subsystem,
const std::string& name,
54 void AddActuator(
const std::string& subsystem,
const std::string& name,
55 std::shared_ptr<LiveWindowSendable> component);
58 void AddActuator(std::string type,
int channel,
60 void AddActuator(std::string type,
int module,
int channel,
63 bool IsEnabled()
const {
return m_enabled; }
64 void SetEnabled(
bool enabled);
73 void InitializeLiveWindowComponents();
75 std::vector<std::shared_ptr<LiveWindowSendable>> m_sensors;
79 std::shared_ptr<nt::NetworkTable> m_liveWindowTable;
80 std::shared_ptr<nt::NetworkTable> m_statusTable;
85 bool m_enabled =
false;
86 bool m_firstTime =
true;
Live Window Sendable is a special type of object sendable to the live window.
Definition: LiveWindowSendable.h:17
The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow...
Definition: LiveWindow.h:40
Definition: LiveWindow.h:22
NetworkTables Entry.
Definition: NetworkTableEntry.h:30
Definition: Scheduler.h:30