Go to Post Now THAT's the way FIRST is supposed to work :) ! - Stu Bloom [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 14-01-2006, 10:54
coastertux coastertux is offline
Penn State Class of 2010!
AKA: Steve
FRC #1640 (sab-BOT-age)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Downingtown, PA
Posts: 264
coastertux is just really nicecoastertux is just really nicecoastertux is just really nicecoastertux is just really nicecoastertux is just really nice
Send a message via AIM to coastertux
CMU Cam not Tracking Properly on Robot

When the camera is on the bench, it tracks perfectly in LabView (after putting a jumper on the pins to flip the Pan). When we hook it into the robot via TTL and PWM 1 (Pan Servo) and 2 (Tilt Servo) it does not track properly. Once it locks on to the target, the camera pans/tilts the target out of the field of view of the camera (the Pan and Tilt Errors increase when they should be decreasing).

Anyone else have this same problem?
__________________
"The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvellous structure of reality." ~Albert Einstein
DHSE '06, PSU '10 (Eberly College of Science - Chemistry)
  #2   Spotlight this post!  
Unread 14-01-2006, 11:10
coastertux coastertux is offline
Penn State Class of 2010!
AKA: Steve
FRC #1640 (sab-BOT-age)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Downingtown, PA
Posts: 264
coastertux is just really nicecoastertux is just really nicecoastertux is just really nicecoastertux is just really nicecoastertux is just really nice
Send a message via AIM to coastertux
Re: CMU Cam not Tracking Properly on Robot

We found the problem! In tracking.h we redefined PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT to the opposite values. Now it is tracking perfectly!
__________________
"The important thing is not to stop questioning. Curiosity has its own reason for existing. One cannot help but be in awe when he contemplates the mysteries of eternity, of life, of the marvellous structure of reality." ~Albert Einstein
DHSE '06, PSU '10 (Eberly College of Science - Chemistry)
  #3   Spotlight this post!  
Unread 14-01-2006, 12:10
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,351
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CMU Cam not Tracking Properly on Robot

Quote:
Originally Posted by coastertux
We found the problem! In tracking.h we redefined PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT to the opposite values. Now it is tracking perfectly!
Yep, that'll do it.
OBTW, that situation is covered in the Tracking.h file included in the code from Kevin Watson. It is well worth the time to walk through ALL of his code. He documents it very well.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #4   Spotlight this post!  
Unread 14-01-2006, 12:27
Terry Sherman's Avatar
Terry Sherman Terry Sherman is offline
Mentor -- Software
FRC #0093 (NEW Apple Corps.)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Wisconsin
Posts: 25
Terry Sherman is an unknown quantity at this point
Re: CMU Cam not Tracking Properly on Robot

Another thing to note is if you are using the 'Bells & Whistles' version of Kevin's code that this parameter is also stored in EEPROM. What this means is if you change the #defines in the code, recompile, and download you will not actually see a change in the behavior. This is because the code is loading the last used values (previous defaults) from EEPROM. You have to use Kevin's menu system to modify the value or alternatively (since you changed the default values) reset the configuration to default.

-Terry
  #5   Spotlight this post!  
Unread 14-01-2006, 13:19
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMU Cam not Tracking Properly on Robot

Quote:
Originally Posted by Terry Sherman
Another thing to note is if you are using the 'Bells & Whistles' version of Kevin's code that this parameter is also stored in EEPROM. What this means is if you change the #defines in the code, recompile, and download you will not actually see a change in the behavior. This is because the code is loading the last used values (previous defaults) from EEPROM. You have to use Kevin's menu system to modify the value or alternatively (since you changed the default values) reset the configuration to default.
Yep. If the software finds a valid camera and/or tracking configuration in EEPROM it will use that information for configuration. To save values from the header file into EEPROM select load default values from the menu and then hit the save changes key. You can see where the software gets the configuration data by enabling debug messages in camera.h.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #6   Spotlight this post!  
Unread 28-01-2006, 23:21
aaronm_k aaronm_k is offline
Registered User
no team
 
Join Date: Jan 2006
Rookie Year: 2006
Location:  
Posts: 10
aaronm_k is on a distinguished road
Exclamation Re: CMU Cam not Tracking Properly on Robot

Quote:
Originally Posted by coastertux
We found the problem! In tracking.h we redefined PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT to the opposite values. Now it is tracking perfectly!
Yes, if you have any tracking problems, be sure to check these settings first! Kevin's default values are wrong when used with the assembly instructions in the CMUcam workbook, and I spent 3 days changing every other setting before I finally found this post!
  #7   Spotlight this post!  
Unread 29-01-2006, 00:02
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMU Cam not Tracking Properly on Robot

Quote:
Originally Posted by aaronm_k
Yes, if you have any tracking problems, be sure to check these settings first! Kevin's default values are wrong when used with the assembly instructions in the CMUcam workbook, and I spent 3 days changing every other setting before I finally found this post!
Sorry about the documentation problems. As I suspect you'll get better tracking performance, you might consider rotating your camera 180 degrees because the best way to mount the camera is with the tilt axis extending through the camera module.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
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
Honda's robot... Don Wright Math and Science 7 17-12-2005 13:15
CMU Camera Tracking auditt241 Programming 0 03-02-2005 16:33
pic: (447) Our CMU CAM BOX rufu5 Extra Discussion 2 17-01-2005 19:10
Index of team's post about their robot... Ken Leung Robot Showcase 1 20-03-2002 17:10
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


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