Go to Post To ANY Robowrangler students reading this thread: If any of you ask me about the game hint, at any time, you will be assigned 4 hours of shop cleaning duty during week 1. No exceptions. - JVN [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2016, 14:17
NegativeZero NegativeZero is offline
Registered User
FRC #3098
 
Join Date: Jan 2016
Location: Waterford
Posts: 6
NegativeZero is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2016, 15:15
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
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
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2016, 15:21
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Print to Driver Station?

Quote:
Originally Posted by euhlmann View Post
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?
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2016, 18:17
NegativeZero NegativeZero is offline
Registered User
FRC #3098
 
Join Date: Jan 2016
Location: Waterford
Posts: 6
NegativeZero is an unknown quantity at this point
Re: Print to Driver Station?

Quote:
Originally Posted by Arhowk View Post
have you tried DriverStation.reportError?
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)
My code is
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);
}

}
Any ideas?
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 10:18.

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