Go to Post ...and then at the end they interviewed this 5 year old on his favorite part (of the fair): "I liked the robot" - Jessica Boucher [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 10-02-2010, 00:13
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Camera Instance Problem

We are working on trying to get the Camera to work in Windriver C++ I have gone through and it seems our problem is different then others.

DS Version: 2010.01.06.00 (which is update 2 I can see the Gyro Dial on dashboard)
cRIO Image: C-2010_v19

I have included #include "Vision/AxisCamera.h" at the beginning of code.
Followed the instructions on page 58 of 2-2010FRCControl%20System-Getting%20Started-Rev-0.7.pdf

Our problem is when we make an instance of AxisCamera using the following code we get communication to the driver station but says "No Robot Code". If I comment out the GetInstance() line it everything runs perfect.
Code:
		//printf("Getting camera instance\n");
		AxisCamera &camera = AxisCamera::GetInstance();
		//printf("Setting camera parameters\n");
		//camera.WriteResolution(AxisCamera::kResolution_320x240);
		//camera.WriteCompression(20);
		//camera.WriteBrightness(0);
		GetWatchdog().SetEnabled(true);
		while (IsOperatorControl())
		{
			GetWatchdog().Feed();
Note: I have no other vision code in the code except for what is shown and the include statement at beginning.
We have updated Windriver to "C/C++ Team Update 4.2 2/8/2010"
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2010, 10:14
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Camera Instance Problem

check the council out it should give you some indication as to whats going on.

you might also want to give the camera some time to boot before you try doing anything with it (once you get this code working that is)
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2010, 18:48
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Camera Instance Problem

Unresolved Symbols List:
AxisCamera::GetInstance()

is the message I'm getting. . I have tried to put a Wait in front of the GetInstance and everything I try I get the same results. . .

attached is the actual error window
Attached Thumbnails
Click image for larger version

Name:	cameraError.png
Views:	43
Size:	14.9 KB
ID:	8612  
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2010, 01:33
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Camera Instance Problem

Quote:
Originally Posted by Gamer930 View Post
Unresolved Symbols List:
AxisCamera::GetInstance()

is the message I'm getting. . I have tried to put a Wait in front of the GetInstance and everything I try I get the same results. . .

attached is the actual error window
Unresolved symbol means (in this case) that the code implementing the function call (AxisCamera::GetInstance()) is missing (from the WPILib library).

Is this with the most recent WPILib C++ update (02-08)?
We have this problem too, it seems the latest update has some issues in this regard.

See this thread on the official usfirst.org forums for the problem report and description, as well as a workaround, and hopefully an announcement of an updated release in the near future:
http://forums.usfirst.org/showthread.php?t=14573
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2010, 09:33
Gamer930's Avatar
Gamer930 Gamer930 is offline
Team 930 and 171 Alumni
AKA: Justin
no team
Team Role: Alumni
 
Join Date: Mar 2002
Rookie Year: 2002
Location: New Berlin, WI
Posts: 388
Gamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to beholdGamer930 is a splendid one to behold
Re: Camera Instance Problem

Called NI and they were unaware of any new Library errors . . . They wanted me to change to Labview and download the Labview default code on while I was on Hold. . . .
Did that and everything worked great. .

So there is forsure yet another error in the WPI Default Code/Library by the sounds of things and comments from other teams

Seriously considering just switching back to Labview. . . . We did Labview last year but grew to like Windriver in the off season.
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2010, 11:45
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera Instance Problem

Quote:
Originally Posted by heydowns View Post
...it seems the latest update has some issues in this regard.
Those working on the issue seem to think it's a compiler (or perhaps linker) bug that is being brought out by the particular contents of the library. There are workarounds (as mentioned in the thread you linked to), and there will likely be an update that makes the bug stop surfacing.
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2010, 14:12
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Camera Instance Problem

Quote:
Originally Posted by Alan Anderson View Post
Those working on the issue seem to think it's a compiler (or perhaps linker) bug that is being brought out by the particular contents of the library. There are workarounds (as mentioned in the thread you linked to), and there will likely be an update that makes the bug stop surfacing.
That's odd, considering I took the stock WR suite and built the stock WPILib sources (to produce the workaround lib image linked above).

Do you have more details on said bug?
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2010, 07:01
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Camera Instance Problem

Any idea when the new library will come out?
I removed all of our code that uses DriverStationLCD and we still had the problem.
Reply With Quote
  #9   Spotlight this post!  
Unread 12-02-2010, 12:49
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Camera Instance Problem

I am having that problem too. I installed the update (4.2) to fix my DashboardLCD which worked great but it broke the camera. I removed the camera references and I am good.

I updated the thread we were on so I was hoping that Brad might have seen it.

Right now with all the camera problems it is "dead to me" so I am good.

I am planning on using Gyro directions for targetting. More reliable.

If the camera ever gets fixed I may go back but I am working very hard not to.
Reply With Quote
  #10   Spotlight this post!  
Unread 12-02-2010, 15:24
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Camera Instance Problem

did you try rebuilding? [right click project]>Rebuild
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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
Camera problem ijk90825 Technical Discussion 1 28-01-2009 01:35
Instance relay Team_486 Programming 0 28-03-2007 09:56
Camera Problem ta1234 Programming 1 29-01-2007 09:38
camera problem miscar Programming 2 23-01-2005 12:06
Camera Problem n_0163 Electrical 3 14-01-2005 21:10


All times are GMT -5. The time now is 13:18.

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