|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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/...rrors-warnings) Thank you in advance! Last edited by NegativeZero : 23-01-2016 at 14:25. |
|
#2
|
||||
|
||||
|
Re: Print to Driver Station?
With the roborio, processor usage on a simple print shouldn't be an issue.
You could also use networktables and print to the smartdashboard |
|
#3
|
||||
|
||||
|
Re: Print to Driver Station?
Quote:
have you tried DriverStation.reportError? |
|
#4
|
|||
|
|||
|
Re: Print to Driver Station?
I have tried that, but i am being thrown a lot of warnings/errors.
Code:
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) Code:
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);
}
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|