public class LCDInfo extends Object
Modifier and Type | Field and Description |
---|---|
private static TextLCD |
LCD |
static int |
LCD_REFRESH |
private Timer |
lcdTimer |
String |
line1 |
String |
line2 |
private Odometer |
odo |
private double[] |
pos |
Constructor and Description |
---|
LCDInfo(Odometer odometer,
TextLCD LCD,
boolean start)
Constructor for LCDInfo
|
Modifier and Type | Method and Description |
---|---|
static void |
displayMessage(String message)
Displays user message on line 3 of the LCD
|
static TextLCD |
getLCD()
Gets TextLCD object given in constructor
|
void |
pause()
Stop LCD thread updates
|
void |
resume()
Restart LCD thread updates
|
void |
setLine1(String line1)
Display custom string on line 1
|
void |
setLine2(String line2)
Display custom string on line 2
|
void |
timedOut()
Displays position and heading, robot state, and other messages
|
public static final int LCD_REFRESH
private Odometer odo
private Timer lcdTimer
private static TextLCD LCD
public String line1
public String line2
private double[] pos
public LCDInfo(Odometer odometer, TextLCD LCD, boolean start)
odometer
- Odometer objectLCD
- TextLCD objectstart
- if the runtime display should begin on creationpublic static void displayMessage(String message)
message
- message to displaypublic void timedOut()
public void pause()
public void resume()
public static TextLCD getLCD()
public void setLine1(String line1)
line1
- String to display on user line 1public void setLine2(String line2)
line2
- String to display on user line 2