Go to Post When your team becomes ubiquitous with the phrase "Always a bridesmaid, never the bride" - Peyton Yeung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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: 122
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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