View Single Post
  #8   Spotlight this post!  
Unread 13-01-2013, 23:38
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Printing over other text

The data on the driver station is only updated when you call dsLCD->UpdateLCD(). Clear() doesn't make that call, so by calling Clear() you're only clearing out the robot-side buffer, but not updating the screen with it.

I personally don't mind having the stale data on the DS, especially since it leaves a snapshot of the robot's state from right before the connection was lost. Whenever I'm using the DriverStationLCD class though (which isn't as common now that SmartDashboard is available) I put in a call to Clear() before any Printf()s, just so that I can be sure I'm not forgetting to blank out any lines. It's all up to you though
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote