Go to Post Off-season events aren't just for gameplay, they should also be a training session for new students and rookie teams. - Bill Moore [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-01-2014, 18:13
Spencer Logan Spencer Logan is offline
Registered User
FRC #1551
 
Join Date: Jan 2012
Location: Naples
Posts: 2
Spencer Logan is an unknown quantity at this point
Camera not sending images for 7 seconds when enabled

Hello from team 1551. This year we are trying to do some simple vision stuff in autonomous to search for the hot goal. All we want to do is search for a hot goal, and then shoot the ball accordingly, so we hope to only have to run the loop once and not have to deal with a second image processor or anything like that. We are using the Wind River VisionSample2014 example because we are inexperienced with vision and a fairly small team. The only changes we have made to the example code is threshold values adjusted for our camera, and uncommenting the lines that save images to the cRIO. When we run the program, it spits out an error for around 5-7 seconds, and then runs normally. We assume the error is occurring because the camera is not outputting an image, because after the error stops, we can detect hot goals, and use the information to our advantage. We can always see the camera's output in the driver station and in the browser, and only the code is incapable of reading the image for those few seconds. For testing purposes we set the code to stop until it gets an image, just to confirm that there is nothing running in the code that would cause the change, but the error still occurs.

Just for reference, here is the error that is popping up.

>>>>ERROR: status = -1074396154 (0xBFF60406) ImaqThreshold error: ...in ComputeThreshold() in C:/WindRiver/workspace/WPILib/Vision/ColorImage.cpp at line 37

Thanks for any help you can offer
Reply With Quote
 


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 12:06.

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