Go to Post Most members of the CD community are happy to help one another. But searching before you post is standard forum etiquette... - KathieK [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 02-22-2016, 04:22 PM
Team 2064 Team 2064 is offline
Registered User
FRC #2064
 
Join Date: Feb 2016
Location: Middlebury/Southbury, CT
Posts: 1
Team 2064 is an unknown quantity at this point
No Robot Code

Yesterday morning everything with our robot code was working fine, then it stopped working. The RoboRIO is giving us a red Comm light which means it is connected but there is no robot code. We tried replacing the RoboRio, but that didn't work. I re-imaged the RoboRIO, re-uploaded the correct java 8 version, and all the firmware is up to date. Robot code builds and deploys successfully by the DS still says no code. I tried commenting out autonomous, camera, gyro and smarthDashboard code but came to no success. I also searched online and tried the joystick in port 5 trick and all my eclipse is up to date but still no Robot code. I also tired creating a small one motor command-based robot project but that did not work either. Additionally I tried editing the build properties themselves but to no avail. The only thing that seems to work and I get a green light for is the getting-started default code. I wanna be able to get my complex code up and running ASAP.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-22-2016, 06:22 PM
mryfrmr's Avatar
mryfrmr mryfrmr is offline
Registered User
AKA: Mary Farmer
FRC #0191 (XCATS)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: rochester
Posts: 7
mryfrmr is an unknown quantity at this point
Re: No Robot Code

This was happening to us, and I finally figured out our problem, maybe this can help you.

First, if you are not seeing the console output, use the rioLog plugin
https://wpilib.screenstepslive.com/s...anual-id=13809

We saw these messages:
ž” Launching «'/usr/local/frc/JRE/bin/java' '-jar' '/home/lvuser/FRCUserProgram.jar'»
Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:206): ERROR Unhandled exception instantiating robot org.usfirst.frc.team192.robot.Robot java.lang.ClassNotFoundException: org.usfirst.frc.team192.robot.Robot at [java.net.URLClassLoader$1.run(URLClassLoader.java: 372), java.net.URLClassLoader$1.run(URLClassLoader.java: 361), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.j ava:360), java.lang.ClassLoader.loadClass(ClassLoader.java:4 24), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57)


This was a clue for us, because 192 was our prototype robot. Even though the package for our final robot was 191, I forgot to change it in the build.properties file, which looks like this:

# Project specific information
package=org.usfirst.frc.team192.robot
robot.class=${package}.Robot
simulation.world.file=/usr/share/frcsim/worlds/GearsBotDemo.world
#Uncomment and point at user libraries to include them in the build. Do not put libraries in the \wpilib\java folder, this folder is completely overwritten on plugin update.
#userLibs=${user.home}/wpilib/user/lib


I changed the 192 to 191 and voila, robot code.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-22-2016, 06:23 PM
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 86
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: No Robot Code

I am betting that you are getting a runtime exception that is crashing your program; this results in "No Robot Code" on the Driver Station. In the Riolog (in Eclipse), is there an error message that prints? If so, try reading the stack trace that you see there and find the error. If you don't find an error in the Riolog or have trouble locating the problem after reading the stack trace, can you post your code? It will help us help you.
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
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 08:00 AM.

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