Go to Post Lose a year of bumper making and everyone's a rookie again. - mrnoble [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 09-02-2010, 18:55
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
Camera not functioning

Right so 1546 has been having a few issues with our camera. We're using Java and I've written a substantial amount of code, including camera routines. Just to test out the hookup and see our advisor's face on the screen, I created the example CircleTrackerDemo project and loaded it on the robot. Alas, the code loaded up and we got green lights across the board but the classmate still showed "Timeout in Camera Communications". I tried rebooting the bot and the classmate, tickng the video button, checking the camera power and crossover cable. Then I made some modifications to the demo code to print to the dashboard if it found a target or not. I didn't get any output at all (yes I called update) which seems to indicate that cam.freshImage() was never true. I even added another print to make sure the display worked. Read elsewhere that we might try reinstalling the DS software but it seems to me that this is a camera coms issue. Not sure what to do next. Thanks!
__________________
Compiling...
Compiling...
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2010, 02:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera not functioning

If you haven't done so already, make sure to create an account on the camera. You can do so manually or by running the Setup Axis Camera utility. I'd honestly expect another error if this were the issue, but I don't have much experience with the Java drivers.

Other things to check. Camera has a green light around its ring. Camera is plugged into enet plug 2 on cRIO. Also, I have seen issues where C code was creating the camera object in a loop until it succeeded. With no delay, this additional http requests slowed the camera boot from 20seconds to 90seconds. If you haven't already, give it that long. If that is the issue, the solution is to add a wait into the loop when you receive the error.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2010, 19:16
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
Re: Camera not functioning

Already ran Setup Axis Camera. The green light is on. The getInstance() is being called in robotInit, not a looped function. Oh and is plugged into Ethernet port 2. I've let it sit for a while but the dashboard camera viewport still shows the aforementioned message.
__________________
Compiling...
Compiling...
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
120 psi Main Relief Valve not functioning Clifford Pneumatics 10 11-02-2008 22:29
Camera not powered...? Total Meltdown Programming 7 14-01-2006 01:54
Functioning 1/4 Scale V8 engine! sanddrag Technical Discussion 8 26-02-2005 22:39
firstawards website functioning? Lisa Perez General Forum 5 16-02-2005 18:41


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

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