Thread: Console output
View Single Post
  #4   Spotlight this post!  
Unread 21-01-2010, 03:14
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 159
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Console output

(I actually have not played with it this year, so this is really all theoretical as far as I am concerned, but anyhow...)

Here is the description of the class from last year:

Quote:
The C++ API consists of a class called DriverStationLCD. It is a singleton object that can be accessed from anywhere in a team's project. Call DriverStationLCD::GetInstance() to get a pointer to the singleton. With the pointer to the DriverStationLCD, you can call the 2 primary entry points. The Printf() method works just like you expect printf to work. Before the format string, the line and starting column to print to must be specified. Call UpdateLCD() to send the locally buffered text to the driver station.
I'm not sure what you mean by a "problem compiling"? Perhaps you could post your error output?

The class is definitely in this year's WPILib library (or at least in the source code distribution that was provided on FIRSTForge), so you should not need to add the code or header file to your project. Just #include the header file in your code and call the routines as described above. Assuming your include and library paths are set up correctly (and they should be, if you can run other WPILib-based programs) then you should be good to go.
Reply With Quote