public class LiveWindow extends java.lang.Object
Constructor and Description |
---|
LiveWindow() |
Modifier and Type | Method and Description |
---|---|
static void |
add(Sendable sendable)
Add a component to the LiveWindow.
|
static void |
addActuator(java.lang.String moduleType,
int moduleNumber,
int channel,
Sendable component)
Deprecated.
Use
SendableBase.setName(String, int, int) instead. |
static void |
addActuator(java.lang.String moduleType,
int channel,
Sendable component)
Deprecated.
Use
SendableBase.setName(String, int) instead. |
static void |
addActuator(java.lang.String subsystem,
java.lang.String name,
Sendable component)
Deprecated.
Use
Sendable.setName(String, String) instead. |
static void |
addChild(Sendable parent,
java.lang.Object child)
Add a child component to a component.
|
static void |
addSensor(java.lang.String moduleType,
int channel,
Sendable component)
Deprecated.
Use
SendableBase.setName(String, int) instead. |
static void |
addSensor(java.lang.String subsystem,
java.lang.String name,
Sendable component)
Deprecated.
Use
Sendable.setName(String, String) instead. |
static void |
disableAllTelemetry()
Disable ALL telemetry.
|
static void |
disableTelemetry(Sendable sendable)
Disable telemetry for a single component.
|
static void |
enableTelemetry(Sendable sendable)
Enable telemetry for a single component.
|
static boolean |
isEnabled() |
static void |
remove(Sendable sendable)
Remove a component from the LiveWindow.
|
static void |
run()
Deprecated.
No longer required
|
static void |
setEnabled(boolean enabled)
Set the enabled state of LiveWindow.
|
static void |
updateValues()
Tell all the sensors to update (send) their values.
|
public LiveWindow()
public static boolean isEnabled()
public static void setEnabled(boolean enabled)
@Deprecated public static void run()
@Deprecated public static void addSensor(java.lang.String subsystem, java.lang.String name, Sendable component)
Sendable.setName(String, String)
instead.subsystem
- The subsystem this component is part of.name
- The name of this component.component
- A LiveWindowSendable component that represents a sensor.@Deprecated public static void addSensor(java.lang.String moduleType, int channel, Sendable component)
SendableBase.setName(String, int)
instead.moduleType
- A string indicating the type of the module used in the naming (above)channel
- The channel number the device is connected tocomponent
- A reference to the object being added@Deprecated public static void addActuator(java.lang.String subsystem, java.lang.String name, Sendable component)
Sendable.setName(String, String)
instead.subsystem
- The subsystem this component is part of.name
- The name of this component.component
- A LiveWindowSendable component that represents a actuator.@Deprecated public static void addActuator(java.lang.String moduleType, int channel, Sendable component)
SendableBase.setName(String, int)
instead.moduleType
- A string that defines the module name in the label for the valuechannel
- The channel number the device is plugged into (usually PWM)component
- The reference to the object being added@Deprecated public static void addActuator(java.lang.String moduleType, int moduleNumber, int channel, Sendable component)
SendableBase.setName(String, int, int)
instead.moduleType
- A string that defines the module name in the label for the valuemoduleNumber
- The number of the particular module typechannel
- The channel number the device is plugged into (usually PWM)component
- The reference to the object being addedpublic static void add(Sendable sendable)
sendable
- component to addpublic static void addChild(Sendable parent, java.lang.Object child)
parent
- parent componentchild
- child componentpublic static void remove(Sendable sendable)
sendable
- component to removepublic static void enableTelemetry(Sendable sendable)
sendable
- componentpublic static void disableTelemetry(Sendable sendable)
sendable
- componentpublic static void disableAllTelemetry()
public static void updateValues()
Actuators are handled through callbacks on their value changing from the SmartDashboard widgets.