Go to Post I keep on accidently seeing (and pronouncing) it as Chef Deli. - JJG13 [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2015, 14:21
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Robot Code disappearing in Driver Station

Hey, I'm from team 4780 and I've been having an issue making our robot drive. This is the first time my team has tried to run code from eclipse and I followed the steps on screenstepslive. The code builds successfully and when I go into the driver station the communications, joysticks, and robot code is green. When I hit enable, the robot code turns red and it gets disabled. I'm not getting any errors from anything. Can anyone tell me how i can fix this? Thanks in advance.
  #2   Spotlight this post!  
Unread 15-02-2015, 14:23
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Robot Code disappearing in Driver Station

Are you sure you're not erroring out in the Riolog? Make sure the Riolog displays "Launching (bunch of wierd symbols)" to ensure you have communication. Other than that, the most likely offender would be a null pointer exception which should display on the driver station. If you're about tog get System.out.println messages, trace through your code and identify which section errors out and you might see that you forgot to initialize a motor or the like.
  #3   Spotlight this post!  
Unread 15-02-2015, 17:34
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Re: Robot Code disappearing in Driver Station

Okay so I reconfigured the bridge and ran the program again. This time I did get errors in the riolog. Click image for larger version

Name:	image.jpg
Views:	22
Size:	233.4 KB
ID:	18385 can anyone help me with this?

Last edited by Jtbillick : 15-02-2015 at 17:35. Reason: Typo
  #4   Spotlight this post!  
Unread 15-02-2015, 17:54
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Robot Code disappearing in Driver Station

This error is usually caused by changing the package or name of the robot class after the project was created.

Make sure you build.properties file in the project folder has the correct package and Robot class name.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #5   Spotlight this post!  
Unread 15-02-2015, 18:01
Jtbillick Jtbillick is offline
Registered User
FRC #4780
 
Join Date: Jan 2015
Location: Ohio
Posts: 18
Jtbillick is an unknown quantity at this point
Re: Robot Code disappearing in Driver Station

Quote:
Originally Posted by lopsided98 View Post
This error is usually caused by changing the package or name of the robot class after the project was created.

Make sure you build.properties file in the project folder has the correct package and Robot class name.
What is the correct package and Robot class name? Sorry, I'm the only programmer on my team and this is my first year doing this.
  #6   Spotlight this post!  
Unread 15-02-2015, 18:06
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Robot Code disappearing in Driver Station

Quote:
Originally Posted by Jtbillick View Post
What is the correct package and Robot class name? Sorry, I'm the only programmer on my team and this is my first year doing this.
The correct name depends on how your project is setup. The Robot class is the one that contains the robotInit(), teleopInit(), teleopPeriodic() and other methods (assuming you are using iterative or command based). The package name is the text after the package declaration at the beginning of the Robot class.

For example, my robot class is called "Robot" and its first line is:
Code:
package org.usfirst.frc.team2084.CMonster2015;
so my build.properties file has these lines:
Code:
package=org.usfirst.frc.team2084.CMonster2015
robot.class=${package}.Robot
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Closed Thread


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 21:08.

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