edu.wpi.first.wpilibj
Class DriverStationLCD

java.lang.Object
  extended by edu.wpi.first.wpilibj.SensorBase
      extended by edu.wpi.first.wpilibj.DriverStationLCD
All Implemented Interfaces:
IDevice, IInputOutput, FrcBotSimComponent

public class DriverStationLCD
extends SensorBase
implements IInputOutput

Provide access to LCD on the Driver Station.

Buffer the printed data locally and then send it when UpdateLCD is called.


Nested Class Summary
static class DriverStationLCD.Line
          The line number on the Driver Station LCD
 
Field Summary
static int kFullDisplayTextCommand
          Command to display text
static int kLineLength
          Maximum line length for Driver Station display
static int kSyncTimeout_ms
          Driver station timeout in milliseconds
 
Fields inherited from class edu.wpi.first.wpilibj.SensorBase
kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond, n_simProperties
 
Method Summary
static DriverStationLCD getInstance()
          Get an instance of the DriverStationLCD

 void println(DriverStationLCD.Line line, int startingColumn, java.lang.String text)
          Print formatted text to the Driver Station LCD text buffer.
 void println(DriverStationLCD.Line line, int startingColumn, java.lang.StringBuffer text)
          Print formatted text to the Driver Station LCD text buffer.
 void updateLCD()
          Send the text data to the Driver Station.
 
Methods inherited from class edu.wpi.first.wpilibj.SensorBase
checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, free, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, getSimProperties, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kSyncTimeout_ms

public static final int kSyncTimeout_ms
Driver station timeout in milliseconds

See Also:
Constant Field Values

kFullDisplayTextCommand

public static final int kFullDisplayTextCommand
Command to display text

See Also:
Constant Field Values

kLineLength

public static final int kLineLength
Maximum line length for Driver Station display

See Also:
Constant Field Values
Method Detail

getInstance

public static DriverStationLCD getInstance()
Get an instance of the DriverStationLCD

Returns:
an instance of the DriverStationLCD

updateLCD

public void updateLCD()
Send the text data to the Driver Station.


println

public void println(DriverStationLCD.Line line,
                    int startingColumn,
                    java.lang.String text)
Print formatted text to the Driver Station LCD text buffer.

Use UpdateLCD() periodically to actually send the test to the Driver Station.

Parameters:
line - The line on the LCD to print to.
startingColumn - The column to start printing to. This is a 1-based number.
text - the text to print

println

public void println(DriverStationLCD.Line line,
                    int startingColumn,
                    java.lang.StringBuffer text)
Print formatted text to the Driver Station LCD text buffer.

Use UpdateLCD() periodically to actually send the test to the Driver Station.

Parameters:
line - The line on the LCD to print to.
startingColumn - The column to start printing to. This is a 1-based number.
text - the text to print