Go to Post You know, sometimes it is really cool to be a geek! - dlavery [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 17-10-2016, 16:10
philmharner philmharner is offline
Registered User
FRC #5243
 
Join Date: Oct 2016
Location: Virginia
Posts: 2
philmharner is an unknown quantity at this point
No Robot Code

When we try to deploy our robot code, it says "Build Successful". In the FRC Driver Station, however, says there is no robot code.

-Communication light is Red on the roborio and the driver station

Code can be found:
https://github.com/Team-5243/Basketb...e/master/robot


Build Log:

Buildfile: C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build
[delete] Deleting directory C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\dist
compile:
[mkdir] Created dir: C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Robotics1/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics1/wpilib/java/current/lib/NetworkTables.jar: to build
[javac] Compiling 7 source files to C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\dist
[mkdir] Created dir: C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Robotics1/wpilib/java/current/lib/WPILib.jar:C:\Users\Robotics1/wpilib/java/current/lib/NetworkTables.jar: to build/jars.
[copy] Copying 2 files to C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build\jars
[jar] Building jar: C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-5243-FRC.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
[echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only
[sshexec] Connecting to roboRIO-5243-FRC.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-5243-FRC.local:22
[scp] done.
[sshexec] Connecting to roboRIO-5243-FRC.local:22
[sshexec] cmd : killall -q netconsole-host || :
[scp] Connecting to roboRIO-5243-FRC.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-5243-FRC.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] Connecting to roboRIO-5243-FRC.local:22
[sshexec] cmd : sync
BUILD SUCCESSFUL
Total time: 9 seconds

Things we have tried:
--Updating Roborio firmware
--Tried with multiple roborios
--Tried with last year's code (worked last year, also included more sensor code, no change)
--Tried redeploying easily 10 times

After reading Ozrien's post in https://www.chiefdelphi.com/forums/s...hreadid=141652
--we tried to put a joystick in our last port (and in both ports). Did nothing.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-10-2016, 16:54
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 295
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: No Robot Code

Have you tried looking for any messages that appear when attempting to run the code manually over ssh?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-10-2016, 17:13
bdaroz's Avatar
bdaroz bdaroz is offline
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 403
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Re: No Robot Code

Just checking given all the things you did list that you've tried...

If you reimaged the RoboRIO, did you reinstall the Java Runtime on the RoboRIO?
Reply With Quote
  #4   Spotlight this post!  
Unread 17-10-2016, 18:04
GoldenGollem's Avatar
GoldenGollem GoldenGollem is offline
Java Programmer
FRC #2509 (Hutchinson Tigerbots)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2015
Location: Minnesota
Posts: 26
GoldenGollem is an unknown quantity at this point
Re: No Robot Code

I also had this happen to me. Here is a link to the thread.

One thing I found(I believe it works) is to start over with the code. Deploy a basic FRC WPILIB example and to add one piece at a time and find where the code errors out.
__________________
GoldenGollem -Hutchinson Tigerbots 2509
2015 - Mini-MN Regional 2nd Place Finalist
2016 - Mini-MN Regional 1st Place Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 17-10-2016, 18:14
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: 351
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: No Robot Code

Looks like eclipse is able to connect but not the driver station. Double check that your team number is correct in eclipse preferences > WPILib (if not, fix it and redeploy) and that the team number is also correct on the driver station.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #6   Spotlight this post!  
Unread 18-10-2016, 00:14
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: No Robot Code

Quote:
Originally Posted by philmharner View Post
[javac] Compiling 7 source files to C:\Users\Robotics1\Documents\FRCRobotics\2015-16\BasketBall\build
Are you sure you are running to code in github? There are 9 source files in github, but your build log only shows 7.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-10-2016, 13:51
philmharner philmharner is offline
Registered User
FRC #5243
 
Join Date: Oct 2016
Location: Virginia
Posts: 2
philmharner is an unknown quantity at this point
Re: No Robot Code

Found the issue.
The Shoot command activates the solenoid subsystem, waits 5 seconds, and then deactivates it. The issue?

We put
private SolenoidSubsystem SS = new SolenoidSubsystem(); as the attribute, instead of leaving it
private SolenoidSubsystem SS;

and then initializing it in the initialize method.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-10-2016, 12:25
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: 351
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: No Robot Code

Quote:
Originally Posted by philmharner View Post
Found the issue.
The Shoot command activates the solenoid subsystem, waits 5 seconds, and then deactivates it. The issue?

We put
private SolenoidSubsystem SS = new SolenoidSubsystem(); as the attribute, instead of leaving it
private SolenoidSubsystem SS;

and then initializing it in the initialize method.
That doesn't explain why the communication light was red. Are you sure you didn't mean the robot code light when you said that in your original post?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
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 11:09.

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