fireXtract
22-01-2015, 18:29
When using CommandBased robot, my TiltPan subsystem uses
Servo tilt = new Servo(RobotMap.tiltServo);
to initiate a servo, and then when I added 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"
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.jav a:197)]
Has anyone else been able to recreate this and found a fix?
Servo tilt = new Servo(RobotMap.tiltServo);
to initiate a servo, and then when I added 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"
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.jav a:197)]
Has anyone else been able to recreate this and found a fix?