12 #include <wpi/Twine.h> 13 #include <wpi/deprecated.h> 15 #include "SmartDashboard/Sendable.h" 36 WPI_DEPRECATED(
"no longer required")
46 WPI_DEPRECATED(
"use Sendable::SetName() instead")
57 WPI_DEPRECATED(
"use Sendable::SetName() instead")
68 WPI_DEPRECATED(
"use Sendable::SetName() instead")
70 std::shared_ptr<Sendable> component);
80 WPI_DEPRECATED(
"use Sendable::SetName() instead")
92 WPI_DEPRECATED(
"use Sendable::SetName() instead")
104 WPI_DEPRECATED(
"use Sendable::SetName() instead")
106 std::shared_ptr<Sendable> component);
113 WPI_DEPRECATED(
"use SensorUtil::SetName() instead")
121 WPI_DEPRECATED(
"use SensorUtil::SetName() instead")
129 WPI_DEPRECATED(
"use SensorUtil::SetName() instead")
138 void Add(std::shared_ptr<Sendable> component);
189 bool IsEnabled()
const;
210 std::unique_ptr<Impl> m_impl;
Definition: Utility.cpp:119
void AddActuator(const wpi::Twine &subsystem, const wpi::Twine &name, Sendable *component)
Add an Actuator associated with the subsystem and call it by the given name.
Definition: LiveWindow.cpp:83
void AddChild(Sendable *parent, std::shared_ptr< Sendable > component)
Add a child component to a component.
Definition: LiveWindow.cpp:133
void AddSensor(const wpi::Twine &subsystem, const wpi::Twine &name, Sendable *component)
Add a Sensor associated with the subsystem and call it by the given name.
Definition: LiveWindow.cpp:65
The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow...
Definition: LiveWindow.h:23
void SetEnabled(bool enabled)
Change the enabled status of LiveWindow.
Definition: LiveWindow.cpp:174
void DisableTelemetry(Sendable *component)
Disable telemetry for a single component.
Definition: LiveWindow.cpp:157
void UpdateValues()
Tell all the sensors to update (send) their values.
Definition: LiveWindow.cpp:192
void DisableAllTelemetry()
Disable ALL telemetry.
Definition: LiveWindow.cpp:163
void Remove(Sendable *component)
Remove the component from the LiveWindow.
Definition: LiveWindow.cpp:144
void EnableTelemetry(Sendable *component)
Enable telemetry for a single component.
Definition: LiveWindow.cpp:149
Definition: LiveWindow.cpp:27
static LiveWindow * GetInstance()
Get an instance of the LiveWindow main class.
Definition: LiveWindow.cpp:58
Definition: Sendable.h:18
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
void Add(std::shared_ptr< Sendable > component)
Add a component to the LiveWindow.
Definition: LiveWindow.cpp:123