Go to Post An explanation of the reasoning behind design decisions will almost always result in a more thorough understanding of the solution than analysis alone can obtain. - Travis Covington [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 24-01-2017, 20:48
generaldgibson generaldgibson is offline
generaldgibson
AKA: Daniel Gibson
FRC #3397 (FRC Robolions)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2015
Location: University City
Posts: 26
generaldgibson is an unknown quantity at this point
No Robot Code on RoboRIO

Last week our test RIO was running fine, we were deploying basic code and getting prototypes working just fine. But now the RIO is saying that there is no robot code on the RIO, even though I downloaded code onto the RIO with no problems. I made sure the RIO has the latest versions of Java and the RIO image (unless there's a new RIO image version I hadn't heard about). I searched the topic and tried the trick where you plug the joystick into slot 5 on the DS, that didn't work either. I'm really stumped about why this isn't working. Any help would be appreciated, thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2017, 20:50
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No Robot Code on RoboRIO

It looks like your code is crashing. Does the Driver Station console have any messages in it?
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2017, 20:54
generaldgibson generaldgibson is offline
generaldgibson
AKA: Daniel Gibson
FRC #3397 (FRC Robolions)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2015
Location: University City
Posts: 26
generaldgibson is an unknown quantity at this point
Re: No Robot Code on RoboRIO

Yes, I was getting this from the driver station.

ERROR Unhandled exception: java.lang.NullPointerException at
[edu.wpi.first.wpilibj.CameraServer.addCamera(Camer aServer.java:785),
org.usfirst.frc.team3397.robot.Robot.robotInit(Rob ot.java:45),
edu.wpi.first.wpilibj.SampleRobot.startCompetition (SampleRobot.java:117),
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:247)]
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2017, 20:56
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No Robot Code on RoboRIO

It looks like you have a NPE. If you send me your code (As a zip please), I can take a look.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2017, 20:57
generaldgibson generaldgibson is offline
generaldgibson
AKA: Daniel Gibson
FRC #3397 (FRC Robolions)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2015
Location: University City
Posts: 26
generaldgibson is an unknown quantity at this point
Re: No Robot Code on RoboRIO

Looking at it again, it seems like a lot of problems are stemming from the CameraServer. I noticed that there were some new classes for using the camera this year, but I couldn't ever find a solid guide on how to implement camera - the stuff I did use was a bit confusing.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2017, 21:23
generaldgibson generaldgibson is offline
generaldgibson
AKA: Daniel Gibson
FRC #3397 (FRC Robolions)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2015
Location: University City
Posts: 26
generaldgibson is an unknown quantity at this point
Re: No Robot Code on RoboRIO

Code should be attached here
Attached Files
File Type: zip TestingCode3397.zip (821.1 KB, 9 views)
Reply With Quote
  #7   Spotlight this post!  
Unread 24-01-2017, 21:27
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: No Robot Code on RoboRIO

Try this on line 45:
Code:
cam1 = server.startAutomaticCapture();
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 24-01-2017, 21:31
generaldgibson generaldgibson is offline
generaldgibson
AKA: Daniel Gibson
FRC #3397 (FRC Robolions)
Team Role: Programmer
 
Join Date: Aug 2015
Rookie Year: 2015
Location: University City
Posts: 26
generaldgibson is an unknown quantity at this point
Re: No Robot Code on RoboRIO

That worked. I had a feeling it was the camera, thanks for the help!
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 23:54.

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