Log in

View Full Version : Unable to Create Gyro


Cobra Commander
23-01-2016, 12:40
I've set up my gyro properly, we've used them in the past. However, after deploying I get this error to the dashboard.

ERROR Unhandled exception instantiating robot org.usfirst.frc.team498.robot.Robot java.lang.RuntimeException: Code: -1005. HAL: A pointer parameter to a method is NULL at [edu.wpi.first.wpilibj.hal.AnalogJNI.setAccumulator Deadband(Native Method), edu.wpi.first.wpilibj.AnalogInput.setAccumulatorDe adband(AnalogInput.java:279), edu.wpi.first.wpilibj.AnalogGyro.setDeadband(Analo gGyro.java:239), edu.wpi.first.wpilibj.AnalogGyro.initGyro(AnalogGy ro.java:56), edu.wpi.first.wpilibj.AnalogGyro.<init>(AnalogGyro.java:106), edu.wpi.first.wpilibj.AnalogGyro.<init>(AnalogGyro.java:90), org.usfirst.frc.team498.robot.Robot.<init>(Robot.java:20), sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method), sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62), sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45) , java.lang.reflect.Constructor.newInstance(Construc tor.java:408), java.lang.Class.newInstance(Class.java:433), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:204)]

Is something wrong with the library?

Joe Ross
23-01-2016, 13:55
I can't duplicate it. Can you post your code?