Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Vision Code crashing (http://www.chiefdelphi.com/forums/showthread.php?t=80951)

flameout 23-01-2010 14:51

Vision Code crashing
 
I think I ran across this before here on CD, but I couldn't find the thread once this happened.

We are using the CircleTrackerDemo project with Java to drive our robot. Apart from changing the drivetrain settings, it is unmodified.

At first it worked perfectly, but after a small robot demolition derby (people need to think, but they prefer not to,) it no longer works.

The code appears to work as long as the trigger (which activates the tracking) is pressed. There appears to be a separate (program, not CD) thread that runs the vision code. However, for unknown reasons, it is crashing now.

We also had communications issues (which developed overnight,) so we checked the dip switches and re-imaged the cRio. Not, communication appears fine, but the camera still only functions when the joystick trigger is pressed.

Here's the last output from NetBeans:
Code:

[cRIO] * Loading StartupDlls: FRC_JavaVM
[cRIO]
[cRIO]
[cRIO] [OTA Server] Version: 2010 FRC, Dec 30 2009, 15:22:08
[cRIO]
[cRIO] [OTA Server] Starting...
[cRIO]
[cRIO] [OTA Command Server] In serverSocketListener()
[cRIO]
[cRIO] [OTA Redirector] In serverSocketListener()
[cRIO]
[cRIO] task 0x215a590 (t2) deleted: errno=0 (0) status=0 (0)
[cRIO]
[cRIO] Welcome to LabVIEW Real-Time 8.6.1f2
[cRIO]
[cRIO] NI-VISA Server 4.5 started successfully.
[cRIO] task 0xe62058 (t1) deleted: errno=1835009 (0x1c0001) status=1 (0x1)
[cRIO] [OTA Server] Restarting Java VM
[cRIO]
[cRIO] Bootstrap suite loaded
[cRIO] In Startup
[cRIO] Looking for implementation class com.sun.squawk.platform.posix.vxworks.natives.SelectImpl
[cRIO] FPGA Hardware GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] FPGA Software GUID: 0xad9a5591cc64e4df756d77d1b57a549e
[cRIO] IterativeRobot Constructor Start
[cRIO] IterativeRobot Constructor Finish
[cRIO] IterativeRobot startCompetition() Start
[cRIO] task 0x2158710 (FRC_cameraTask) deleted: errno=0 (0) status=0 (0)
[cRIO] Default RobotIterativeBase::DisabledInit() method running
[cRIO] Disabled_Init() completed
[cRIO] Default RobotIterativeBase::DisabledInit() method running
[cRIO] Disabled_Init() completed

Does anyone have an idea what's happening? Thank you for any help.

flameout 26-01-2010 21:27

Re: Vision Code crashing
 
I would like to add that we've done more testing, and LabVIEW's vision code works fine. We will probably switch to LabVIEW, at least until the Java code works (I'll keep checking for updates.)

I hope this gets fixed.


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