|
WPILibC++
2020.3.2
|
The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow. More...
#include <LiveWindow.h>
Public Member Functions | |
| LiveWindow (const LiveWindow &)=delete | |
| LiveWindow & | operator= (const LiveWindow &)=delete |
| void | EnableTelemetry (Sendable *component) |
| Enable telemetry for a single component. More... | |
| void | DisableTelemetry (Sendable *component) |
| Disable telemetry for a single component. More... | |
| void | DisableAllTelemetry () |
| Disable ALL telemetry. | |
| bool | IsEnabled () const |
| void | SetEnabled (bool enabled) |
| Change the enabled status of LiveWindow. More... | |
| void | UpdateValues () |
| Tell all the sensors to update (send) their values. More... | |
Static Public Member Functions | |
| static LiveWindow * | GetInstance () |
| Get an instance of the LiveWindow main class. More... | |
Public Attributes | |
| std::function< void()> | enabled |
| std::function< void()> | disabled |
The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow.
| void frc::LiveWindow::DisableTelemetry | ( | Sendable * | component | ) |
Disable telemetry for a single component.
| sendable | component |
| void frc::LiveWindow::EnableTelemetry | ( | Sendable * | component | ) |
Enable telemetry for a single component.
| sendable | component |
|
static |
Get an instance of the LiveWindow main class.
This is a singleton to guarantee that there is only a single instance regardless of how many times GetInstance is called.
| void frc::LiveWindow::SetEnabled | ( | bool | enabled | ) |
Change the enabled status of LiveWindow.
If it changes to enabled, start livewindow running otherwise stop it
| void frc::LiveWindow::UpdateValues | ( | ) |
Tell all the sensors to update (send) their values.
Actuators are handled through callbacks on their value changing from the SmartDashboard widgets.