Print to Driver Station?

Hello,

I am looking for a way to display messages in the driver station using a function other than println()'s, as i am afraid that this may result in too much processor usage on the roborio. I am aware of the DriverStationLCD class, but that appears to have been removed from the latest version of WPILib. (http://wpilib.screenstepslive.com/s/3120/m/8559/l/96657-frc-driver-station-errors-warnings)

Thank you in advance!

With the roborio, processor usage on a simple print shouldn’t be an issue.

You could also use networktables and print to the smartdashboard

You’d be surprised (though I shall say nothing as I aim not to provide un-researched claims of the Driver Station and the roboRIO)

have you tried DriverStation.reportError?

I have tried that, but i am being thrown a lot of warnings/errors.

CTRE CAN Recieve Timeout at edu.wpi.first.wpilibj.hal.CanTalonJNI.GetAppliedThrottle(Native Method)
edu.wpi.first.wpilibj.CANTalon.get(CANTalon.java:577)
edu.wpi.first.wpilibj.CANSpeedController.updateTable(CANSpeedController.java:159)
edu.wpi.first.wpilibj.CANTalon.updateTable(CANTalon.java:1773)
edu.wpi.first.wpilibj.CANTalon.initTable(CANTalon.java:1765)
edu.wpi.first.wpilibj.livewindow.LiveWindow.initializeLiveWindowComponents(LiveWindow.java:86)
edu.wpi.first.wpilibj.livewindow.LiveWindow.setEnabled(LiveWindow.java:108)
edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:101)
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)

My code is



String DSPrint;

protected void execute () {

if (Robot.oi.driver.getRawButton(8) == 1)
{
DSPrint = Button On;
DriverStation.reportError(DSPrint, false);
}

else
{
DSPrint = Button Off;
DriverStation.reportError(DSPrint, false);
}

}

Any ideas?

You need to use quotation marks around your strings, like this:

DSPrint = "Button On";