Go to Post They're pigs, Barry, pigs. And they can fly... - JaneYoung [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 09-02-2006, 07:56
Gal Gal is offline
Registered User
FRC #1577
 
Join Date: Feb 2006
Location: Israel
Posts: 2
Gal is an unknown quantity at this point
Re: our own allternative code for the cmu camera

Quote:
Originally Posted by Calvin
If you cover up the camera, the xerror and yerror values turn 0... Camera stands still and nothing happens... as you uncover the camera it detects the light and does a little adjusting...
If you cover up the camera, it should start searching for the light. If you look in the 1577camera.c we supplied, in the search() function it says:

Code:
if (xerror != 0 && yerror != 0)
     track();
That means that if the xerror and yerror are NOT 0, the camera should track the light. If the xerror and yerror ARE 0, the camera should perform a search as written in the code.
I don't know why your camera doesn't perform that search but i know it should...
This code works for us very well, but maybe we should add an 'else' after that 'if'.
Anyway, are you sure you followed all of the instructions in the readme we made?
__________________
A proud member of #1577 SteamPunk from Raanana, Israel!

Last edited by Gal : 09-02-2006 at 08:14.
 


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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
CMU Camera kills robot controller if not found. Chris_Elston Programming 21 27-03-2006 14:30
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 23:58.

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