mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilib] LiveWindow: Add enableAllTelemetry() (#4480)
This commit is contained in:
@@ -150,6 +150,19 @@ public final class LiveWindow {
|
||||
});
|
||||
}
|
||||
|
||||
/** Enable ALL telemetry. */
|
||||
public static synchronized void enableAllTelemetry() {
|
||||
telemetryEnabled = true;
|
||||
SendableRegistry.foreachLiveWindow(
|
||||
dataHandle,
|
||||
cbdata -> {
|
||||
if (cbdata.data == null) {
|
||||
cbdata.data = new Component();
|
||||
}
|
||||
((Component) cbdata.data).m_telemetryEnabled = true;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Tell all the sensors to update (send) their values.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user