Thread: jRIO
View Single Post
  #36   Spotlight this post!  
Unread 01-03-2013, 15:39
feverittm's Avatar
feverittm feverittm is offline
Registered User
FRC #0997 (Spartans)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Corvallis, OR
Posts: 120
feverittm will become famous soon enoughfeverittm will become famous soon enough
Re: jRIO

I tried to compile/run this using the main code from one of the standard projects. I followed the directions in the PDF, and removed the calls to the unsupported systems (specifically some Timer() calls).

When I run the program I get the following exception:

Code:
Exception in thread "main" java.lang.NullPointerException
	at org.jRIO.DashboardDisplay.DashboardDisplay.joystickButtonGeneration(DashboardDisplay.java:929)
	at edu.wpi.first.wpilibj.Joystick.<init>(Joystick.java:59)
	at robotsimulation.DefaultRobot.<init>(DefaultRobot.java:112)
	at robotsimulation.RobotSimulation.main(RobotSimulation.java:28)
It appears that the Joystick code is having issues. One question I would have is do you have to change the wpilib imports in your code to the new library? For instance I include the 'Joystick' library from wpilib. I would that I need to change these imports, but I haven't tried it yet.

Any clues as to what is happening?

Thanks
__________________
Floyd Moore
Mentor Electrical and Pneumatics
Team 997 - Spartan Robotics
Corvallis High School, Corvallis Oregon
Reply With Quote