Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java program won't run (http://www.chiefdelphi.com/forums/showthread.php?t=81178)

I am error 26-01-2010 14:44

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?

Patrickwhite 26-01-2010 21:26

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.

cheezburger 28-01-2010 15:01

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!

omalleyj 29-01-2010 13:51

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. :)


All times are GMT -5. The time now is 09:41.

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