Go to Post Because the new control system weights as much as a fully-loaded M1 Abrams Tank. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-02-2012, 10:43
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Send User Messages (Driver Station)

what class/code is used in sending messages to the Driver Station's "User Messages" box?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 10:45
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2012, 11:43
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Send User Messages (Driver Station)

Quote:
Originally Posted by gixxy View Post
what class/code is used in sending messages to the Driver Station's "User Messages" box?
The DriverStationLCD class.

Quote:
Originally Posted by notmattlythgoe View Post
http://www.wbrobotics.com/javadoc/ed...Dashboard.html

One of the put() methods depending on what data you want to send.
The SmartDashboard class is for sending data to the SmartDashboard, not to the UserMessages area of the driver station.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2012, 11:45
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Send User Messages (Driver Station)

Quote:
Originally Posted by Joe Ross View Post
The DriverStationLCD class.



The SmartDashboard class is for sending data to the SmartDashboard, not to the UserMessages area of the driver station.
You are right, my mistake.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2012, 12:29
Intel i7 Intel i7 is offline
Registered User
FRC #3540 (Wildcat Robotics)
Team Role: Driver
 
Join Date: Feb 2010
Rookie Year: 2010
Location: N.C.
Posts: 39
Intel i7 is an unknown quantity at this point
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();
}
__________________
Driver
Programmer
Webcoder/Designer

Code:
http://www.chiefdelphi.com/forums/showthread.php?t=102329
Making our own custom dashboard system/framework!
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2012, 20:14
Herbblood's Avatar
Herbblood Herbblood is offline
Knowledgeable
AKA: Ally
FRC #3044 (OxBE4)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2008
Location: Ballston Spa
Posts: 247
Herbblood is an unknown quantity at this point
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.
__________________
Off to WPI!
Go OxBE4
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi