Go to Post Aaaah - interpersonal dynamics - the root of most problems on most teams. - UCGL_Guy [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2010, 14:44
I am error's Avatar
I am error I am error is offline
The Error
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Frederick
Posts: 20
I am error is an unknown quantity at this point
Java program won't run

'ello people. we have been trying to get java working in order to program our robot. long story short, its having issues.

Since our robot for this year is still being assembled, we decided to program our 2009 robot with java to get experience.

we put in the code from http://first.wpi.edu/Images/CMS/Firs...va_for_FRC.pdf . it says that it will run perfectly and exactly as described, driving in a square for autonomous and having a simple 2-joystick drive for teleop.

we imaged the cRio for Java, connected successfully and loaded the code without error.

That's where the success stops. the robot neither does the autonomous code nor does it respond to joysticks.

we checked all the usb ports and pwm slots for differences w/ the program, the driver station is connecting perfectly with the cRio, and the code is supposedly perfect according to the pdf.

anyone know whats going on?
__________________
I am Error. Yes.

Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2010, 21:26
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: Java program won't run

Depending on your electrical settings, the code may be trying to operate nonexistent parts. Try having some output sent directly to the development computer (System.out.println()), and see if you get anything.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 15:01
cheezburger's Avatar
cheezburger cheezburger is offline
Registered User
FRC #0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Mount Airy, MD
Posts: 61
cheezburger is an unknown quantity at this point
Re: Java program won't run

(im from same team as original poster)
we did put in print statements and they all did work.
However the robot itself is still unresponsive.
it could be that the program on the previously mentioned pdf doesn't operate jaguars and the robot has jaguars.
it could also be a wiring error but i don't know anything about that.
we have all updates we could find.
aaaaggggghhhhh i'm running out of ideas!
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2010, 13:51
omalleyj omalleyj is offline
Registered User
AKA: Jim O'Malley
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: New Jersey
Posts: 132
omalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to beholdomalleyj is a splendid one to behold
Re: Java program won't run

The example code has some issues, and will not run perfectly, but your problem is almost certainly that your robot doesn't have the same HW configuration.

RobotDrive drive = new RobotDrive(1, 2);

assumes that your motor controllers are on channels 1 and 2 and the module is in cRIO slot 4. If the robot runs fine with last years code check to see how you initialized your controllers in the old code.

BTW, don't forget to check that the hardware guys haven't swiped parts or cables to use on the new robot, wouldn't be the first time.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Java Program Robopanda6 Java 6 28-01-2010 16:55
Sample 2010 C++ Program's Autonomous Not Won't Run joxphoto General Forum 2 25-01-2010 13:30
2010 Sample C++ Autonomous Code Won't Run (Wind River) joxphoto C/C++ 1 23-01-2010 08:58
Learning to Program in Java Kingofl337 Java 15 10-10-2009 10:47
User code won't download/run-possible causes? nathanww C/C++ 3 21-01-2009 11:00


All times are GMT -5. The time now is 22:42.

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