Quote:
Originally Posted by jhersh
If you are using the DriverStationLCD class, you can call:
Code:
myDS_LCD->Printf(DriverStationLCD::kUser_Line1, 1, "%d", encoderValue);
myDS_LCD->UpdateLCD();
|
I'd recommend using PrintfLine instead (available in newest version of WPILib), which pads the line with blank spaces. If you just use printf, then if your number grows and then shrinks it will leave parts of the old number there.
Of course, one could play with formatting options to fix that...