|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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! |
|
#4
|
|||
|
|||
|
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. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |