For some reason our gyro code has stopped working, it worked fined for the last few weeks and now we cannot even initialize a simple Analog Gyro without getting an error message and getting no robot code to the robot.
The error is as follows:
ERROR Unhandled exception: 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.team3314.robot.Robot.robotInit(Robot.java:82), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:72), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:241)]
The only thing we are doing with gyro now is creating it below Iterative Robot, and then initializing it in robotInit.
Any help or insight would be appreciated.
Thanks!