Go to Post We've been thinking about just declaring our smallest kid on our BOM and making her part of the robot. - Qbot2640 [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 12-02-2007, 18:40
iiiii iiiii is offline
Registered User
FRC #0637
 
Join Date: Feb 2007
Location: NJ
Posts: 3
iiiii is an unknown quantity at this point
camera goes to corner when finds light

Using easy-c, I have a functioning camera code inside the operator control function. It looks left, right, up and down until it finds the light. When it does find it, the set servo tracking button usually will follow the light succesfully. About 30% of the time, however, once the camera finds the light, it just goes into the upper left corner, and I have no idea why. Does anyone know how to correct this?
  #2   Spotlight this post!  
Unread 12-02-2007, 19:14
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: camera goes to corner when finds light

Quote:
Originally Posted by iiiii View Post
Using easy-c, I have a functioning camera code inside the operator control function. It looks left, right, up and down until it finds the light. When it does find it, the set servo tracking button usually will follow the light succesfully. About 30% of the time, however, once the camera finds the light, it just goes into the upper left corner, and I have no idea why. Does anyone know how to correct this?
If you are using the default tracking code, when it goes to the upper left, that means it has lost lock on the target and has restarted searching.

Are you using a fresh battery?
  #3   Spotlight this post!  
Unread 12-02-2007, 19:16
iiiii iiiii is offline
Registered User
FRC #0637
 
Join Date: Feb 2007
Location: NJ
Posts: 3
iiiii is an unknown quantity at this point
Re: camera goes to corner when finds light

I am using a fresh battery, and I am not using the default camera code.
  #4   Spotlight this post!  
Unread 12-02-2007, 19:37
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: camera goes to corner when finds light

Quote:
Originally Posted by iiiii View Post
I am using a fresh battery, and I am not using the default camera code.
Does it work with the default camera code, then?

Your code is controlling the servos, so if you aren't using the default code, you'll have to share at least some of your code with us.
  #5   Spotlight this post!  
Unread 13-02-2007, 11:16
jdejoannis jdejoannis is offline
Registered User
FRC #1845
 
Join Date: Feb 2006
Location: Atlanta,GA
Posts: 48
jdejoannis will become famous soon enoughjdejoannis will become famous soon enough
Re: camera goes to corner when finds light

Is it locked on to the target though? Returning target data? If so, it may be a matter of the settings for the target pixel.
  #6   Spotlight this post!  
Unread 13-02-2007, 13:20
bcieslak
 
Posts: n/a
Re: camera goes to corner when finds light

It sounds like youre camera looks away from the light.
In the tracking.h module there are some bits to change:
Look for:

// If your camera suddenly moves away from the target once
// it finds it, you'll need to change the sign on one or
// both of these values.
#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT +1

Try experimenting with these.
BC
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 finds overhead lights not green light theycallhimtom Programming 4 20-01-2007 17:37
camera trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
pic: when prototyping goes wrong Whalley Extra Discussion 13 01-02-2006 21:31
Camera never finds target, stays at "Searching..." Mike Programming 12 22-01-2006 12:47
pic: When Good Metabolism Goes Bad. CD47-Bot Extra Discussion 24 17-05-2003 21:10


All times are GMT -5. The time now is 04:46.

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