2010 FRC Java API


edu.wpi.first.wpilibj
Class DriverStationLCD

java.lang.Object
  extended by edu.wpi.first.wpilibj.SensorBase
      extended by edu.wpi.first.wpilibj.DriverStationLCD

public class DriverStationLCD
extends SensorBase

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, kChassisSlots, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond
 
Method Summary
static DriverStationLCD getInstance()
          Get an instance of the DriverStationLCD
 void println(DriverStationLCD.Line line, int startingColumn, String text)
          Print formatted text to the Driver Station LCD text bufer.
 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, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule
 
Methods inherited from class java.lang.Object
equals, 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,
                    String text)
Print formatted text to the Driver Station LCD text bufer. 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

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.