Go to Post They have a ton of spirit but they are somewhat humble in their application of it. - firstfollower [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 01-04-2010, 01:54
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Camera problem: No Code

Since installing C++ team update 4.1 I've had an issue where the driver station says there is "No Code" on the robot. This only happens whenever I have the line "AxisCamera &camera = AxisCamera::GetInstance()" (or equivalent) in the code, when I remove all camera-related code it runs fine.

Previous to the update, I've been able to run the bot with the camera and get a live feed to the driver station, leading me to believe that it has something to do with one of the updates.

Has anyone else experienced this? How did you fix it?

(It's worth mentioning that I never installed update 4.3, but it doesn't seem to be relevant to this issue. Regardless, I'll try it tomorrow along with anything else.)
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote
  #2   Spotlight this post!  
Unread 01-04-2010, 02:08
mikets's Avatar
mikets mikets is online now
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Camera problem: No Code

Yes, you need the latest update. One of the intermediate updates was broken.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 02-04-2010, 02:20
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Re: Camera problem: No Code

Hm, I forgot to try update 4.3 today, but I'll take your word for it (especially since people mysteriously stopped responding to this thread (which I didn't see earlier) after the update).

Is this the "issues with camera and image processing symbols not showing up in the library" mentioned in the update's description? If so, it went right over my head (oops!). Cost us a working camera for SVR. Oh well.
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote
  #4   Spotlight this post!  
Unread 20-04-2010, 21:16
Al3+'s Avatar
Al3+ Al3+ is offline
ARTist
AKA: Anthony
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2008
Location: San Mateo, CA
Posts: 58
Al3+ is a jewel in the roughAl3+ is a jewel in the roughAl3+ is a jewel in the rough
Re: Camera problem: No Code

Installed the update, but now we aren't getting a dashboard feed. Everything else on the robot is working, so it's not crashing the system. It's just as if the camera code wasn't there at all.

Right now I have something like:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCamera::k320x240);
camera.WriteBrightness(0);
in the robot constructor. That should be enough, right?

Workbench is v4.3, cRIO image is v20, camera is connected to ethernet port 2 and lights up green.
__________________
cout << "Hello, robotics. Goodbye, world." << endl;

"The two-axis accelerometer provided in the kit of parts (shown in the picture below) is a two-axis accelerometer." - WPILib User's Guide
Reply With Quote
  #5   Spotlight this post!  
Unread 20-04-2010, 22:18
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Camera problem: No Code

Are you running the latest version of the Dashboard? (with the gyro in the lower right) Did you make any modifications? Are there any firewalls running? Does the camera still not show images if you roll back to the first version for this year?

Also, if you haven't already, install NetConsole (instructions are with the first WPILib update). It should give some major hints to what is wrong
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
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
Java/Netbeans Camera Code for Classmate PC and Axis Camera joshholat Programming 1 23-01-2010 14:59
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Problem downloading any Camera code zuckie13 Programming 4 07-02-2005 20:32
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 02:47.

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