public class LiveWindow extends Object
Constructor and Description |
---|
LiveWindow() |
Modifier and Type | Method and Description |
---|---|
static void |
addActuator(String moduleType,
int moduleNumber,
int channel,
LiveWindowSendable component)
Add Actuator to LiveWindow.
|
static void |
addActuator(String moduleType,
int channel,
LiveWindowSendable component)
Add Actuator to LiveWindow.
|
static void |
addActuator(String subsystem,
String name,
LiveWindowSendable component)
Add an Actuator associated with the subsystem and with call it by the
given name.
|
static void |
addSensor(String moduleType,
int channel,
LiveWindowSendable component)
Add Sensor to LiveWindow.
|
static void |
addSensor(String subsystem,
String name,
LiveWindowSendable component)
Add a Sensor associated with the subsystem and with call it by the given
name.
|
static void |
run()
The run method is called repeatedly to keep the values refreshed on the screen in
test mode.
|
static void |
setEnabled(boolean enabled)
Set the enabled state of LiveWindow.
|
public static void setEnabled(boolean enabled)
public static void run()
public static void addSensor(String subsystem, String name, LiveWindowSendable component)
subsystem
- The subsystem this component is part of.name
- The name of this component.component
- A LiveWindowSendable component that represents a sensor.public static void addActuator(String subsystem, String name, LiveWindowSendable component)
subsystem
- The subsystem this component is part of.name
- The name of this component.component
- A LiveWindowSendable component that represents a
actuator.public static void addSensor(String moduleType, int channel, LiveWindowSendable component)
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 addedpublic static void addActuator(String moduleType, int channel, LiveWindowSendable component)
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 addedpublic static void addActuator(String moduleType, int moduleNumber, int channel, LiveWindowSendable component)
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 addedCopyright © 2015. All rights reserved.