Go to Post Rules from prior years DO NOT APPLY to this year! - dlavery [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 11-10-2011, 20:57
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Camera live feed problems

Ok, I know this is like my 30th post about the axis camera but now it's much different, I added the camera to the code it built perfectly and was downloaded to the robot no problems so after I re-boot the robot after loading the code, I got a live feed from the camera for approximately 10 seconds then the ds loot connection to the robot and an exception error pops up in windriver on a separate computer that i use to program the robot, and it asked me if I want to attach the debugger. I really do not know how to fix this error and all the hardware's and software's are up to date, can someone help me please?

here's the code:
Code:
		    HSLImage image;     //Creates an image
		    AxisCamera &camera = AxisCamera::GetInstance();
		    camera.WriteResolution(AxisCamera::kResolution_640x480);
		    camera.WriteCompression(20);
		    camera.WriteBrightness(0);
I am wondering, could lack of Hard Drive memory on the driver station be the problem?

Last edited by krudeboy51 : 11-10-2011 at 21:00.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-12-2011, 22:32
Dacilndak's Avatar
Dacilndak Dacilndak is offline
Matt'); DROP TABLE Users; --
AKA: Matthew Haney
FRC #3729 (Red Knights)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Denver, Colorado
Posts: 12
Dacilndak is an unknown quantity at this point
Re: Camera live feed problems

My team had a similar problem last year, but I'd be surprised if it hasn't been fixed yet. This may be the solution you're looking for, but with newer versions of WPILib it could be something completely different.

Our trouble was with WPILib itself when using the newer camera - the AxisCamera and AxisCameraParams classes do not use semaphores correctly when accessing the camera, leading to a race condition.

I posted this thread detailing the fix last year. Since the HTML links don't work in the archive, Joe Hurler's original fix is here, and the download for the patch files is here.
__________________
Team 3729 - Raiders - Programming Team Co-Captain
2011 Colorado Regional Semifinalist
2011 Colorado Regional Rookie All-Star Award
2011 Colorado Regional Highest Rookie Seed Award
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


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

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