View Single Post
  #3   Spotlight this post!  
Unread 08-02-2013, 09:58
kenfox kenfox is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Ann Arbor, MI
Posts: 51
kenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of lightkenfox is a glorious beacon of light
Re: Driver Station User Messages Not Updating

Quote:
Originally Posted by wag2625 View Post
Code:
dsLCD->Printf(DriverStationLCD::kUser_Line1, 1,"Message\n");
dsLCD->UpdateLCD();
The user message will sometimes print once when the code is first deployed, but will not continue to update after that.
I haven't used the LCD yet, but it works by sending a big block of text that sets every character on the display. You don't want to include newlines (even if the LCD hardware handles them, it would mess up the position of the other text being displayed).

Your code will write "Message" on line 1 starting at column 1. If you run it again it will do the same thing. Maybe try something like this to see if it's updating:

Code:
dsLCD->Printf(DriverStationLCD::kUser_Line1, 1, "Time %8.3f", Timer::GetPPCTimestamp());
dsLCD->UpdateLCD();
Reply With Quote