Go to Post The programmers tend to get less credit than they deserve, but the robot wouldn't run if we weren't there. :) - IMDWalrus [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 16-12-2016, 08:57
Xanawatt Xanawatt is offline
Registered User
FRC #1024
 
Join Date: May 2015
Location: Indianapolis, Indiana
Posts: 17
Xanawatt is an unknown quantity at this point
Errors not showing up in Driverstation until they are corrected

When testing our code, sometimes when we deploy, then the robot code light on Driverstation stays red. We then take out the change that we made, and when we redeploy, then the error that was showing what was wrong for the previous code shows up in the Driverstation. I don't know if this is a bug or not, but it would be nice to know what the error is when our robot code is showing red on the Driverstation instead of fixing it and then it shows us what the error was. Has anyone else ran into this problem?

PS: We program in java, but this might be a multi-platform thing.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-12-2016, 09:54
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: 296
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: Errors not showing up in Driverstation until they are corrected

No, but you can get a more reliable log over ssh
Code:
tail -f /home/lvuser/FRC_UserProgram.log
Try it, and does the same problem occur?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 16-12-2016, 11:18
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,068
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: Errors not showing up in Driverstation until they are corrected

This is a known bug in the driver station, that has been fixed for the 2017 season. As a temporary workaround, import the

edu.wpi.first.wpilibj.communication.FRCNetworkComm unicationsLibrary

package, and at the the very beginning of RobotInit, add a call to

FRCNetworkCommunicationsLibrary.FRCNetworkCommunic ationObserveUserProgramStarting.

That will force the robot to be seen as connected, and it will print the error messages. However, this will not be needed in 2017.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-12-2016, 12:09
Xanawatt Xanawatt is offline
Registered User
FRC #1024
 
Join Date: May 2015
Location: Indianapolis, Indiana
Posts: 17
Xanawatt is an unknown quantity at this point
Re: Errors not showing up in Driverstation until they are corrected

Quote:
Originally Posted by Thad House View Post
This is a known bug in the driver station, that has been fixed for the 2017 season.
Ah, thank goodness!
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 04:53.

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