|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Send User Messages (Driver Station)
what class/code is used in sending messages to the Driver Station's "User Messages" box?
|
|
#2
|
|||||
|
|||||
|
Re: Send User Messages (Driver Station)
http://www.wbrobotics.com/javadoc/ed...Dashboard.html
One of the put() methods depending on what data you want to send. |
|
#3
|
||||||
|
||||||
|
Re: Send User Messages (Driver Station)
Quote:
Quote:
|
|
#4
|
|||||
|
|||||
|
Re: Send User Messages (Driver Station)
You are right, my mistake.
|
|
#5
|
|||
|
|||
|
Re: Send User Messages (Driver Station)
I created a method that helps us display stuff easier
Code:
public static void disp(int line, String msg)
{
DriverStationLCD.Line l;
switch (line)
{
case 1:
l = DriverStationLCD.Line.kUser2;
break;
case 2:
l = DriverStationLCD.Line.kUser3;
break;
case 3:
l = DriverStationLCD.Line.kUser4;
break;
case 4:
l = DriverStationLCD.Line.kUser5;
break;
case 5:
l = DriverStationLCD.Line.kUser6;
break;
case 6:
l = DriverStationLCD.Line.kMain6;
break;
default:
l = DriverStationLCD.Line.kUser2;
break;
}
DriverStationLCD.getInstance().println(l, 1, msg);
DriverStationLCD.getInstance().updateLCD();
}
|
|
#6
|
||||
|
||||
|
Re: Send User Messages (Driver Station)
println(DriverStationLCD.Line, int, StringBuffer) - Method in class edu.wpi.first.wpilibj.DriverStationLCD
Print formatted text to the Driver Station LCD text buffer. and don't forget LCD update. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|