Go to Post Focus on solving the problem, not on being deliberately creative. If you effectively solve the problem, creativity is naturally leveraged as part of finding a great solution. - Jim Zondag [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 08-02-2009, 16:26
iTHOS=awesome iTHOS=awesome is offline
Registered User
FRC #1258
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Seattle
Posts: 16
iTHOS=awesome is an unknown quantity at this point
Send a message via MSN to iTHOS=awesome
Camera not tracking with default code

We seem to be having an issue with the default TwoColorTrackDemo code. We know for a fact that the camera can see the target ... but it does not search for/follow the target.

There are a few things I want to make sure of; is the default code supposed to be able to search for/follow a target? (I thought so, but this would not be the first time I was wrong)

I have a checklist of things to look for on the robot tomorrow electronics wise, but is there anything in Windriver I should check as well? Our electronics guys are bent on saying it is a code issue, because they would not have messed up on something like this
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2009, 20:50
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,112
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 not tracking with default code

I don't think the example code needs any changes in order to work, but I've not been using the WindRiver environment, so I can't say it with certainty.

Make sure your electronics checklist includes making sure the 6v LED is lit on the Digital Sidecar, and that the servo power jumpers are installed on the PWM outputs going to the pan/tilt servos.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2009, 23:22
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Camera not tracking with default code

Make sure you're running the latest updates--the most recent one(cRio 11/WR 3) fixed an issue in camera tracking and FindColor calls. If you're running an earlier version, FindColor will return the first particle it finds, even if that particle is just one pixel.
__________________
Get yer robot source code here!
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2009, 11:14
iTHOS=awesome iTHOS=awesome is offline
Registered User
FRC #1258
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Seattle
Posts: 16
iTHOS=awesome is an unknown quantity at this point
Send a message via MSN to iTHOS=awesome
Re: Camera not tracking with default code

Quote:
Originally Posted by nathanww View Post
Make sure you're running the latest updates--the most recent one(cRio 11/WR 3) fixed an issue in camera tracking and FindColor calls. If you're running an earlier version, FindColor will return the first particle it finds, even if that particle is just one pixel.
Thanks for the help; we updated to version 11 last week troubleshooting the code.
__________________
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 not tracking AG-chadd Programming 3 07-02-2009 10:51
camera tracking code mahmosh Programming 2 25-01-2009 18:37
Camera Tracking not working? NinJA999 C/C++ 0 25-01-2009 15:28
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09


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

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