"

2013 FRC Java API

"

edu.wpi.first.wpilibj.livewindow
Class LiveWindow

java.lang.Object
  extended by edu.wpi.first.wpilibj.livewindow.LiveWindow

public class LiveWindow
extends Object

The LiveWindow class is the public interface for putting sensors and actuators on the LiveWindow.

Author:
Alex Henning

Constructor Summary
LiveWindow()
           
 
Method Summary
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 subsystem, String name, LiveWindowSendable component)
          Add a Sensor associated with the subsystem and with call it by the given name.
static void run()
           
static void setEnabled(boolean enabled)
          Set the enabled state of LiveWindow.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiveWindow

public LiveWindow()
Method Detail

setEnabled

public static void setEnabled(boolean enabled)
Set the enabled state of LiveWindow. If it's being enabled, turn off the scheduler and remove all the commands from the queue and enable all the components registered for LiveWindow. If it's being disabled, stop all the registered components and reenable the scheduler. TODO: add code to disable PID loops when enabling LiveWindow. The commands should reenable the PID loops themselves when they get rescheduled. This prevents arms from starting to move around, etc. after a period of adjusting them in LiveWindow mode.


run

public static void run()

addSensor

public static void addSensor(String subsystem,
                             String name,
                             LiveWindowSendable component)
Add a Sensor associated with the subsystem and with call it by the given name.

Parameters:
subsystem - The subsystem this component is part of.
name - The name of this component.
component - A LiveWindowSendable component that represents a sensor.

addActuator

public static void addActuator(String subsystem,
                               String name,
                               LiveWindowSendable component)
Add an Actuator associated with the subsystem and with call it by the given name.

Parameters:
subsystem - The subsystem this component is part of.
name - The name of this component.
component - A LiveWindowSendable component that represents a actuator.

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"