Go to Post FIRST is supposed to be a learning experience. Learn first, win awards later. - evulish [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 20-01-2006, 23:34
team1500 team1500 is offline
Registered User
FRC #1500
 
Join Date: Jan 2006
Location: Michigan
Posts: 10
team1500 will become famous soon enough
Our Camera runs away from the light?!?!?

Hopefully you guys can help us with a problem we are having the servo's on the CMU Cam seem to be reversed because they alway go away from the light instead of tracking towards it I read in one of the other posts that some of the teams had this problem last year however I could not find a way to fix it.
Any help would be appreciated
Thanks
Brad
  #2   Spotlight this post!  
Unread 20-01-2006, 23:37
bombadier337's Avatar
bombadier337 bombadier337 is offline
1337 U53R
AKA: Shaver
None #1541 (MidloCANics)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Richmond VA
Posts: 123
bombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nice
Send a message via AIM to bombadier337
Re: Our Camera runs away from the light?!?!?

You could try flipping the camera upside down in the pan/tilt box. If it was mounted incorrectly the first time it would cause something like that.
__________________
Midlothian High School - Team 1541
2005 Radioshack Innovation in Control - NASA/VCU Regional
2005 Rookie Inspiration - NASA/VCU Regional
  #3   Spotlight this post!  
Unread 20-01-2006, 23:40
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Our Camera runs away from the light?!?!?

There are also two #define's in the tracking.h file of the camera tracking code by Kevin Watson that specify the sign (+ or -) to be used when tracking. If you locate these two and flip them, you will be able to make that correction in software instead of in hardware.
  #4   Spotlight this post!  
Unread 21-01-2006, 00:03
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: Our Camera runs away from the light?!?!?

If you have the servos connected to the CMUCam board then you just have to jump the pan/tilt reverse jumper but if you are using the RC then you need to edit the code in tracking.h.

Code:
// 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
  #5   Spotlight this post!  
Unread 21-01-2006, 00:09
team1500 team1500 is offline
Registered User
FRC #1500
 
Join Date: Jan 2006
Location: Michigan
Posts: 10
team1500 will become famous soon enough
Re: Our Camera runs away from the light?!?!?

Alrighty Thanks guys
We'll have to give those a try tomorrow.
Brad
  #6   Spotlight this post!  
Unread 21-01-2006, 15:44
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: Our Camera runs away from the light?!?!?

"If you have the servos connected to the CMUCam board then you just have to jump the pan/tilt reverse jumper"

I'm having this problem, how do you go about switching this jumper, and where is this jumper located? (Or how do I switch the pwm cable electronically?)
  #7   Spotlight this post!  
Unread 21-01-2006, 18:14
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Our Camera runs away from the light?!?!?

Quote:
Originally Posted by stephenthe1
"If you have the servos connected to the CMUCam board then you just have to jump the pan/tilt reverse jumper"

I'm having this problem, how do you go about switching this jumper, and where is this jumper located? (Or how do I switch the pwm cable electronically?)
Have you looked at the documentation for the camera?

Have a look on pave 17 of the CMUCam2 Workbook.

-Joe
  #8   Spotlight this post!  
Unread 23-01-2006, 11:48
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: Our Camera runs away from the light?!?!?

Quote:
Originally Posted by Joe Hershberger
Have you looked at the documentation for the camera?

Have a look on pave 17 of the CMUCam2 Workbook.

-Joe

perfect, thanks
  #9   Spotlight this post!  
Unread 23-01-2006, 14:03
tribotec_ca88's Avatar
tribotec_ca88 tribotec_ca88 is offline
FIRST-a-holic
AKA: Camila Fitzgibbon
FRC #1382 (Tribotec Team)
Team Role: Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: São José dos Campos, Brazil
Posts: 194
tribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nice
Send a message via ICQ to tribotec_ca88 Send a message via MSN to tribotec_ca88 Send a message via Yahoo to tribotec_ca88
Re: Our Camera runs away from the light?!?!?

I strongly recommend changing the following values first...(Found on Tracking.h) from:
#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT +1
to
#define PAN_ROTATION_SIGN_DEFAULT +1
#define TILT_ROTATION_SIGN_DEFAULT -1

Our team was having similar issues and in the end we found out all we had to do was invert the +/- signal...lol...
__________________
1382 Tribotec Team - Brazil
-----------------------------------------------
2005 NJ Regional GM Industrial Design Award
2005 NJ Regional Website Excellence Award
2004 NJ Regional Semifinalists
-----------------------------------------------
  #10   Spotlight this post!  
Unread 23-01-2006, 17:42
cmurdoch cmurdoch is offline
Registered User
AKA: Caroline Murdoch
FRC #1208 (Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: O'Fallon, IL
Posts: 17
cmurdoch is on a distinguished road
Re: Our Camera runs away from the light?!?!?

we're having the same problem, but we've tried switching the values in tracking.h and it didn't work. Is there some reason it might not be recognizing the new values?
  #11   Spotlight this post!  
Unread 23-01-2006, 19:15
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Our Camera runs away from the light?!?!?

Quote:
Originally Posted by cmurdoch
we're having the same problem, but we've tried switching the values in tracking.h and it didn't work. Is there some reason it might not be recognizing the new values?
Are you using the Bells and Whistles camera code or the stripped down version? If you're using the Bells and Whistles version, I believe the values in tracking.h will normally only come into play the very first time you run the code. The first time you run the program, all the parameters get saved into EEPROM. To get it to use the the values from tracking.h, you will need to go into the tracking menu, and tell it to reload the default values.

If you're using the stripped down version, then I have no explanation why it's not working.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #12   Spotlight this post!  
Unread 23-01-2006, 21:01
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Our Camera runs away from the light?!?!?

Quote:
Originally Posted by cmurdoch
we're having the same problem, but we've tried switching the values in tracking.h and it didn't work. Is there some reason it might not be recognizing the new values?
Did something stupid today. The PWMs were switched. I debug it one axis at a time and realized that. I switched the Pwms for pan and tilt and they worked like a wonder. Little things can drive you crazy.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #13   Spotlight this post!  
Unread 27-01-2006, 13:06
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: Our Camera runs away from the light?!?!?

Quote:
Originally Posted by team1500
Hopefully you guys can help us with a problem we are having the servo's on the CMU Cam seem to be reversed because they alway go away from the light instead of tracking towards it I read in one of the other posts that some of the teams had this problem last year however I could not find a way to fix it.
Any help would be appreciated
Thanks
Brad

If you are using labview when this happens, it is only becxause labview is crewy. I just turned the servo horn around for labview and put it back for Kevin's code and it worked fine.
  #14   Spotlight this post!  
Unread 28-01-2006, 10:39
Burning Ice Burning Ice is offline
Resident Pyro
FRC #1506 (Metal Muscle)
Team Role: Programmer
 
Join Date: Jan 2006
Location: michigan
Posts: 4
Burning Ice is an unknown quantity at this point
Re: Our Camera runs away from the light?!?!?

Your Camera is upside down....I had the same problem....and i tore it apart and reassembled the camera multiple times......and found that having the camera upside down does that......

Any other questions, feel free to ask and ill help the best i can..

feel free to email me at
Johnbk14@gmail.com
  #15   Spotlight this post!  
Unread 29-01-2006, 11:52
itzrobz itzrobz is offline
Registered User
None #0333
 
Join Date: Jan 2006
Location: BROOKLYN
Posts: 29
itzrobz is an unknown quantity at this point
Re: Our Camera runs away from the light?!?!?

i have the same problem. I am using labview. can anyone tell me how to reverse the pan?
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
How To Use the Google Camera generalbrando Kit & Additional Hardware 2 07-02-2006 16:00
A light on top of the camera? xFlashbacksx Technical Discussion 5 22-01-2005 12:04
How many users does it take to change a Light Bulb? Matt Attallah Chit-Chat 4 04-09-2004 20:59


All times are GMT -5. The time now is 11: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