DriverStationLCD Class Reference
#include <DriverStationLCD.h>


Public Types | |
| enum | Line { kMain_Line6 = 0, kUser_Line1 = 0, kUser_Line2 = 1, kUser_Line3 = 2, kUser_Line4 = 3, kUser_Line5 = 4, kUser_Line6 = 5 } |
Public Member Functions | |
| void | UpdateLCD () |
| void | Printf (Line line, INT32 startingColumn, const char *writeFmt,...) |
| void | PrintfLine (Line line, const char *writeFmt,...) |
| void | Clear () |
Static Public Member Functions | |
| static DriverStationLCD * | GetInstance () |
Static Public Attributes | |
| static const UINT32 | kSyncTimeout_ms = 20 |
| static const UINT16 | kFullDisplayTextCommand = 0x9FFF |
| static const INT32 | kLineLength = 21 |
| static const INT32 | kNumLines = 6 |
Protected Member Functions | |
| DriverStationLCD () | |
Detailed Description
Provide access to LCD on the Driver Station.
Buffer the printed data locally and then send it when UpdateLCD is called.
Definition at line 18 of file DriverStationLCD.h.
Constructor & Destructor Documentation
| DriverStationLCD::DriverStationLCD | ( | ) | [protected] |
DriverStationLCD contructor.
This is only called once the first time GetInstance() is called
Definition at line 24 of file DriverStationLCD.cpp.
Member Function Documentation
| void DriverStationLCD::Clear | ( | ) |
Clear all lines on the LCD.
Definition at line 149 of file DriverStationLCD.cpp.
| DriverStationLCD * DriverStationLCD::GetInstance | ( | ) | [static] |
Return a pointer to the singleton DriverStationLCD.
Definition at line 48 of file DriverStationLCD.cpp.
| void DriverStationLCD::Printf | ( | Line | line, | |
| INT32 | startingColumn, | |||
| const char * | writeFmt, | |||
| ... | ||||
| ) |
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. writeFmt The printf format string describing how to print.
Definition at line 75 of file DriverStationLCD.cpp.
| void DriverStationLCD::PrintfLine | ( | Line | line, | |
| const char * | writeFmt, | |||
| ... | ||||
| ) |
Print formatted text to the Driver Station LCD text bufer. This function pads the line with empty spaces.
Use UpdateLCD() periodically to actually send the test to the Driver Station.
- Parameters:
-
line The line on the LCD to print to. writeFmt The printf format string describing how to print.
Definition at line 116 of file DriverStationLCD.cpp.
| void DriverStationLCD::UpdateLCD | ( | ) |
Send the text data to the Driver Station.
Definition at line 60 of file DriverStationLCD.cpp.
The documentation for this class was generated from the following files:
Generated on Thu Jan 12 2012 22:35:31 for WPILibC++ by
1.7.1