|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Initilizing Servo object errors in driverstation
When using CommandBased robot, my TiltPan subsystem uses
Code:
Servo tilt = new Servo(RobotMap.tiltServo); Code:
public static final TiltPan tiltpan = new TiltPan(); 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)] Last edited by fireXtract : 23-01-2015 at 12:10. |
|
#2
|
||||||
|
||||||
|
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.
|
|
#3
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|