Go to Post The unlived life is not worth examining; the unexamined life is not worth living. - Sage-Theory6 [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 27-01-2007, 13:58
coldfusion1279 coldfusion1279 is offline
Registered User
AKA: Mike
FRC #1279 (Cold Fusion)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Somerville, NJ
Posts: 252
coldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud of
Camera Looks away from light???? Help?

We downloaded the easy c demo code from the kickoff, and downloaded it to the bot. When we shine the light, the camera actually looks away from the green light...

we have tilt in pwm 10, pan in 11, and the power in 12. We have tried switching them, but that just switched the axes of course.

I must mention we are inexperienced programmers and prefer easy c since the source code on kevin's website confuses all of the students.

also, is it already programmed in the kickoff code to have the robot drive to the light once it is tracked? if so does anybody know what function it is defined as?

Thanks in advance to anyone who can help!
__________________
Cold Fusion's 10th Season
  #2   Spotlight this post!  
Unread 27-01-2007, 15:27
JamesByrne's Avatar
JamesByrne JamesByrne is offline
Registered User
FRC #0360 (The revelution)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Tacoma
Posts: 74
JamesByrne is on a distinguished road
Re: Camera Looks away from light???? Help?

we had this problem for a little while, we found that floresent lights being to close to wehre we hold the light like 3 feet or so above the light screwed it up. And also the camera piking up reflections off other things.

Let me know if this does not work.
  #3   Spotlight this post!  
Unread 27-01-2007, 17:42
coldfusion1279 coldfusion1279 is offline
Registered User
AKA: Mike
FRC #1279 (Cold Fusion)
Team Role: Coach
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Somerville, NJ
Posts: 252
coldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud ofcoldfusion1279 has much to be proud of
Re: Camera Looks away from light???? Help?

well we tried different distances..

from about a foot away, the camera just went crazy trying to stay away from the light

from about 6 feet away, the camera didnt even recognize the light at all, so we didnt even hold it any further..

any other ideas?
__________________
Cold Fusion's 10th Season
  #4   Spotlight this post!  
Unread 27-01-2007, 18:29
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: Camera Looks away from light???? Help?

I haven't used the EasyC code for the camera, but I know that with the tracking code in C you have to set the direction of the pan/tilt.

If a team was to mount the camera "upside down", then the tracking code would run away from the light instead of locking onto it.

I'm sure it's something like changing one parameter of the tracking to -1 instead of 1.

If that doesn't do it let me know and I can install EasyC and check it out.
  #5   Spotlight this post!  
Unread 28-01-2007, 01:10
Terry Yiu Terry Yiu is offline
Registered User
FRC #0849 (Wolf Pack)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Unionville, Ontario, Canada
Posts: 2
Terry Yiu is an unknown quantity at this point
Re: Camera Looks away from light???? Help?

Our team is having the exact same problem as you. This isn't an isolated incident either, there was another thread somewhere regarding this problem.

I'm thinking it has to do with a buggy code within the provided EasyC demo program. We want to modify the provided code, but EasyC won't allow us access into the source files. Or of course, it could be that the demo code works perfectly and we're doing something wrong... which is a possibility.

We have also tried mounting it on reverse with no luck, actually makes it worse.

Last edited by Terry Yiu : 28-01-2007 at 01:15.
  #6   Spotlight this post!  
Unread 28-01-2007, 01:21
JamesByrne's Avatar
JamesByrne JamesByrne is offline
Registered User
FRC #0360 (The revelution)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Tacoma
Posts: 74
JamesByrne is on a distinguished road
Re: Camera Looks away from light???? Help?

this is adresed in a diferent thred, i do not have a link. but if you are trying to use a robot batery to power the light. make shure the voltage is above 12.
  #7   Spotlight this post!  
Unread 28-01-2007, 07:52
Swampdude's Avatar
Swampdude Swampdude is offline
Registered User
AKA: Dan Quiggle
FRC #0179 (Children of the Swamp)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: West Palm Beach, FL
Posts: 671
Swampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond reputeSwampdude has a reputation beyond repute
Re: Camera Looks away from light???? Help?

We had this problem last year and found that we had the pan linkage attached wrong. Flip the pan link 180deg around that attaches to the servo. That fixed it for us.
__________________
www.179swampthing.org

  #8   Spotlight this post!  
Unread 31-01-2007, 11:34
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: Camera Looks away from light???? Help?

This is happening to us also The wierd thing it was working /tracking the green light, and now the code is running away from it. I thought we messed up the code and re downloaded the 2007 demo and it still runs away from the light. The camera says
found two targets, gives a readout then the camera moves above the target. We are doing this on a test bed, no motors attached. Am I missing something about how the camera will act on a test bed? Is it because the code thinks the robot has moved, and the camera than trys to adjust higher as it thinks it getss close? We have tried placing the light in mutiple positions but it still seems to run away from the light. Any suggestions on what might be going on here?
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 trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
pic: camera locked on light 143ft away!!! kborer22 Extra Discussion 18 08-07-2006 14:49
Our Camera runs away from the light?!?!? team1500 Programming 16 06-02-2006 19:58
Cmaera semi-running away from light amateurrobotguy Programming 3 04-02-2006 17:23
GETTING AWAY FROM THOSE WALLS? J15.5h General Forum 6 10-12-2004 16:13


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

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