Go to Post I wasn't pouting; just cowering in fear because I actually thought you were mad at me... I didn't want a clipboard to the head like Billfred here. - Jon K. [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 22-01-2015, 18:29
fireXtract fireXtract is offline
MegaHertz_Lux
FRC #2847 (Mega Hertz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: fmt
Posts: 42
fireXtract is an unknown quantity at this point
Initilizing Servo object errors in driverstation

When using CommandBased robot, my TiltPan subsystem uses
Code:
	Servo tilt = new Servo(RobotMap.tiltServo);
to initiate a servo, and then when I added
Code:
public static final TiltPan tiltpan = new TiltPan();
to the Robot main file, it builds and deploys to the robot perfectly fine. When I get to the driver station it gives an error for no robot code with the message of "ERROR Unhandled exception instantiating robot"

Code:
org.usfirst.frc.team2847.robot.Robot java.lang.ExceptionInInitializerError at [java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
Has anyone else been able to recreate this and found a fix?

Last edited by fireXtract : 23-01-2015 at 12:10.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2015, 20:43
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,559
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: Initilizing Servo object errors in driverstation

I was able to make a simple RobotBuilder project with a servo and it didn't crash. It would help if you posted more of your code.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2015, 12:41
fireXtract fireXtract is offline
MegaHertz_Lux
FRC #2847 (Mega Hertz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: fmt
Posts: 42
fireXtract is an unknown quantity at this point
Re: Initilizing Servo object errors in driverstation

https://github.com/FairmontTeam2847/RecycleRush2015 is my guthub for the code, I commented out the subsystem temporarily

Everything is fine with creating a servo object until I create a reference in the Robot main of the command based project such as
Code:
	public static final TiltPan tiltpan = new TiltPan();

Last edited by fireXtract : 26-01-2015 at 16:36.
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:37.

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