Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Unable to Create Gyro (http://www.chiefdelphi.com/forums/showthread.php?t=142385)

Cobra Commander 23-01-2016 12:40

Unable to Create Gyro
 
I've set up my gyro properly, we've used them in the past. However, after deploying I get this error to the dashboard.

Code:

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.setAccumulatorDeadband(Native Method), edu.wpi.first.wpilibj.AnalogInput.setAccumulatorDeadband(AnalogInput.java:279), edu.wpi.first.wpilibj.AnalogGyro.setDeadband(AnalogGyro.java:239), edu.wpi.first.wpilibj.AnalogGyro.initGyro(AnalogGyro.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.newInstance0(Native Method), sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62), sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45), java.lang.reflect.Constructor.newInstance(Constructor.java:408), java.lang.Class.newInstance(Class.java:433), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:204)]
Is something wrong with the library?

Joe Ross 23-01-2016 13:55

Re: Unable to Create Gyro
 
I can't duplicate it. Can you post your code?


All times are GMT -5. The time now is 10:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi