Go to Post This is not an engineering design challenge, this is a project management and common sense challenge with engineering elements. Don't go out of your way to screw yourself. - PayneTrain [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 08-07-2016, 15:22
rtse's Avatar
rtse rtse is offline
449 Lead Programmer
AKA: Ryan Tse
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Mar 2016
Rookie Year: 2016
Location: Montgomery Blair High School
Posts: 7
rtse is an unknown quantity at this point
GradleRIO Deploy "No Robot Code"

I was trying to build and deploy my team's robot code and a configuration file using GradleRIO, and the driver station indicated no robot code (red light in the "Robot Code" field).

I checked the RoboRIO's file system and my FRCUserProgram.jar and configuration file were both present, however the driver station did not recognize the code I had deployed. I deleted those files and redeployed to make sure they were not from a previous deploy, and the GradleRIO deploy definately successfully sent over the two artifacts.

I tried again with an empty project containing the code autogenerated by the FRC Eclipse plugin. The Eclipse plugin's ant script successfully deployed the empty project's code and I was able enable the robot. However, when I used GradleRIO to build and deploy the empty project, the artifact was sent to the RoboRIO but the driver station did not recognize that code had been deployed (same symptoms as when I deployed my team's robot code).

The gradlerio.robotClass and gradlerio.team properties in my build.gradle file match the package name of the robot class and the team number in the driver station, so I do not think that is the issue. Other than changing those two properties, my build.gradle for the empty project is identical to Jaci's template build.gradle (the one provided in GradleRIO's release).

I am building and deploying in git bash running in IntelliJ if that makes any difference.

Has anyone else experienced this problem? Any help on this issue would be appreciated.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 08-07-2016, 17:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,753
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: GradleRIO Deploy "No Robot Code"

You can check the RIO log file for program diagnostic errors.
/user/lvuser/FRCUserProgram.log
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 09-07-2016, 01:08
rtse's Avatar
rtse rtse is offline
449 Lead Programmer
AKA: Ryan Tse
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Mar 2016
Rookie Year: 2016
Location: Montgomery Blair High School
Posts: 7
rtse is an unknown quantity at this point
Re: GradleRIO Deploy "No Robot Code"

I checked the log file, and the only thing in the file was recording of the jar being executed.

After closing and reopening the driver station and deploying again, the driver station showed the following error:

Quote:
WARNING: Robots don't quit!
ERROR: Could not instantiate robot org.usfirst.frc.team0449.Robot!
➔ Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»
This is an error my team has seen before that occurs when static initialization fails, however since the same code worked in the wpilib Eclipse plugin deploy, I still do not see where this error is coming from.
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:46.

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