Go to Post Time to iterate, more. - jwfoss [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2009, 00:31
rl1806's Avatar
rl1806 rl1806 is offline
Registered User
AKA: Ryan Lowe
FRC #1806 (S.W.A.T.)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Smithville
Posts: 39
rl1806 will become famous soon enough
C++ Camera Problems

I was wondering how many teams were having trouble getting the camera to work while using C++. There are a lot of videos on YouTube that show teams tracking the target with no problem. Just wondering if there is a problem with C++ or we are doing something wrong.
__________________
2011-Present: SWAT FRC 1806 Mentor
2012 Rockwell Automation Innovation in Control Award [Oklahoma City]
  #2   Spotlight this post!  
Unread 14-02-2009, 08: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,756
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: C++ Camera Problems

The C++ stuff works. If you aren't using the latest update, there were a few bugs, but it would still work in most cases even then.

You haven't described what "not working" means.

Greg McKaskle
  #3   Spotlight this post!  
Unread 14-02-2009, 10:30
rl1806's Avatar
rl1806 rl1806 is offline
Registered User
AKA: Ryan Lowe
FRC #1806 (S.W.A.T.)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Smithville
Posts: 39
rl1806 will become famous soon enough
Re: C++ Camera Problems

Our camera will be tracking the target then sometimes it just looses it and other times the camera turns to the left and acts like it has locked onto something. When it turns to the left we have to put something in front of the camera to get it to start searching again. We are using the latest update to the software.
__________________
2011-Present: SWAT FRC 1806 Mentor
2012 Rockwell Automation Innovation in Control Award [Oklahoma City]
  #4   Spotlight this post!  
Unread 14-02-2009, 18:09
elfinn elfinn is offline
Team 166 Mentor
AKA: Beth Finn
FRC #0166 (Chopshop Team 166)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Merrimack, NH
Posts: 14
elfinn is an unknown quantity at this point
Re: C++ Camera Problems

Quote:
Originally Posted by rl1806 View Post
Our camera will be tracking the target then sometimes it just looses it and other times the camera turns to the left and acts like it has locked onto something. When it turns to the left we have to put something in front of the camera to get it to start searching again. We are using the latest update to the software.
There are two things that may help you. One is fixing a bug in Target.cpp's FindTwoColors() if you are using the sample program. Search for memcpy and change the second line of each memcpy pair to copy secondTrackReport instead of firstTrackReport to par2.

The other thing which I think is really your problem, is that the camera configuration / HSL settings are not working in your test environment. The camera acts like this if there is a bright contrast, glare or other lighting conditions that are less than ideal. There is a white paper on NI's web site that can help explain this:
http://joule.ni.com/nidu/cds/view/p/id/1235/lang/en
Closed Thread


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 problems(c++) Yuan Xue Lim Programming 12 04-02-2009 16:56
Camera Problems!!! spsteam1512 Programming 0 12-02-2007 13:45
Camera Problems CMB Programming 2 02-02-2007 18:24
Camera Problems 804_twidget1 Electrical 4 27-01-2007 11:28
Camera Problems pickle Programming 21 20-01-2005 20:43


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

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