Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Errors not showing up in Driverstation until they are corrected (http://www.chiefdelphi.com/forums/showthread.php?t=152706)

Xanawatt 16-12-2016 08:57

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.

euhlmann 16-12-2016 09:54

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?

Thad House 16-12-2016 11:18

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.

Xanawatt 19-12-2016 12:09

Re: Errors not showing up in Driverstation until they are corrected
 
Quote:

Originally Posted by Thad House (Post 1621762)
This is a known bug in the driver station, that has been fixed for the 2017 season.

Ah, thank goodness!


All times are GMT -5. The time now is 04:52.

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