Go to Post This is still about fun. Remember that. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2012, 21:09
Nymph808's Avatar
Nymph808 Nymph808 is offline
Registered User
FRC #2443
 
Join Date: Jan 2011
Location: Maui
Posts: 11
Nymph808 is an unknown quantity at this point
DriverStation User Message Problem

So using Java, we ran a code that prints a message onto the DriverStation's User Messages during teleop, but the print doesn't show up. We tried running our old code from Logomotion onto the robot, but that didn't print anything either. Any ideas to why user messages isn't working?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2012, 02:45
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: DriverStation User Message Problem

I had a similar problem (not with old code though). Are you using this method of sending messages?

Code:
DriverStationLCD.getInstance().println(DriverStationLCD.Line.kUser2, 1,"your message");
Do you have this bit of code after you've sent all your messages?

Code:
DriverStationLCD.getInstance().updateLCD();
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2012, 03:10
Nymph808's Avatar
Nymph808 Nymph808 is offline
Registered User
FRC #2443
 
Join Date: Jan 2011
Location: Maui
Posts: 11
Nymph808 is an unknown quantity at this point
Re: DriverStation User Message Problem

Ah yeah, I use those methods. They were on the old code, but they don't seem to work.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2012, 16:33
Nymph808's Avatar
Nymph808 Nymph808 is offline
Registered User
FRC #2443
 
Join Date: Jan 2011
Location: Maui
Posts: 11
Nymph808 is an unknown quantity at this point
Re: DriverStation User Message Problem

Quote:
Originally Posted by JewishDan18 View Post
I had a similar problem (not with old code though). Are you using this method of sending messages?

Code:
DriverStationLCD.getInstance().println(DriverStationLCD.Line.kUser2, 1,"your message");
Do you have this bit of code after you've sent all your messages?

Code:
DriverStationLCD.getInstance().updateLCD();
So this is the code I currently have. Have you got your DriverStation to print any user messages?

package edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.AnalogChannel;
import edu.wpi.first.wpilibj.DriverStationLCD;

public class RobotTemplate extends IterativeRobot {


AnalogChannel b_sonar;
DriverStationLCD b_LCD;
static final int sonarPort = 6;
long lSonarCount;

public void robotInit() {
b_sonar = new AnalogChannel(sonarPort);
b_LCD = DriverStationLCD.getInstance();
b_LCD.updateLCD();
}


public void autonomousPeriodic() {
b_sonar.getVoltage();

}


public void disabledInit(){
b_LCD.println(DriverStationLCD.Line.kMain6, 1, "Print");
}

public void teleopPeriodic() {
//lSonarCount = b_sonar.getAccumulatorCount();
b_LCD.println(DriverStationLCD.Line.kUser4, 15, "Ultrasonic distance: " + b_sonar.getVoltage());
b_LCD.updateLCD();
}
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2012, 19:30
Ross3098's Avatar
Ross3098 Ross3098 is offline
Programmer
AKA: Colin Ross
FRC #3098 (The Captains)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Waterford
Posts: 41
Ross3098 will become famous soon enoughRoss3098 will become famous soon enough
Re: DriverStation User Message Problem

This has been a huge problem for me too this year. I'm using C++ and the code:
Code:
DriverStationLCD *m_LCD;

m_LCD->GetInstance();

m_LCD->Printf(DriverStationLCD::kUser_Line1, 1, "Message");

m_LCD->UpdateLCD();
Has no effect. I redeployed our 2011 code to it for the sake of User Message printing but all of the old commands gave no effect as well.
__________________
2012 FRC Championship: 4th pick, Quarterfinalist: Thanks 1507, 51!
2012 Michigan State Championship: 4th Seed, 3rd Alliance Captain, Semifinalist: Thanks 33 and 2137!
2012 Northville District: 3rd Pick, Quarterfinalist. Thanks 302, 4405!
2012 Waterford District: 2nd Pick, Finalist. Thanks 573, 3601!
2011 Waterford District: 8th seed, 1st pick, Semi Finalist. Thanks to 573 and 3770
2011 Ann Arbor District: 2nd seed, Finalist. Thanks to 548 and 247.
2011 Michigan State Championship: Semi Finalist. Thanks to 548 (Again) and 74.
2011 FIRST World Championship: 8th seed, Quarterfinalist. Thanks to 74(Again) and 846.
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 21:23.

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