Go to Post The FIRST World has your back. - MishraArtificer [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, 16:47
sheyna's Avatar
sheyna sheyna is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: baltimore, maryland
Posts: 5
sheyna is an unknown quantity at this point
CMUCam pan and tilt

Ok i changed all of the settings so that the camera can find the object but when it tries to track it and move it in the center it goes off of the page. the tilt works perfectly but the pan goes left instead of right and right instead of left. i been working all day and i need some major help because i am going to go insane .

~sheyna
  #2   Spotlight this post!  
Unread 14-01-2006, 17:00
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: CMUCam pan and tilt

Are you using LabView, or testing straight from the RC?
  #3   Spotlight this post!  
Unread 14-01-2006, 17:14
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: CMUCam pan and tilt

There is a jumper on the camera board that allows you to reverse the servo direction!

Go to: http://ifirobotics.com/camera.shtml and download the Camera Board Markings.zip file and it is in the CMU Cam Assembly.pdf on the right side!

Last edited by iBheat : 14-01-2006 at 18:29.
  #4   Spotlight this post!  
Unread 14-01-2006, 20:43
Brad Voracek Brad Voracek is offline
.999~=1
FRC #0399 (Eagle Robotics)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lancaster, CA (SoCal)
Posts: 328
Brad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of light
Send a message via AIM to Brad Voracek
Re: CMUCam pan and tilt

Quote:
Originally Posted by iBheat
There is a jumper on the camera board that allows you to reverse the servo direction!

Go to: http://ifirobotics.com/camera.shtml and download the Camera Board Markings.zip file and it is in the CMU Cam Assembly.pdf on the right side!
Which jumper do I remove? My team has been having the same problem and on the pdf there are two jumpers... The Internal Power to Servo one and the Oscillator Connect.

I am guessing we remove the latter, but would not this reverse both servo directions, failing to correct anything? Thanks =/
  #5   Spotlight this post!  
Unread 14-01-2006, 21:06
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: CMUCam pan and tilt

Quote:
Originally Posted by Brad Voracek
Which jumper do I remove? My team has been having the same problem and on the pdf there are two jumpers... The Internal Power to Servo one and the Oscillator Connect.

I am guessing we remove the latter, but would not this reverse both servo directions, failing to correct anything? Thanks =/
Don't remove either. You have to add a jumper. If you look at the doc's, there a "Pan Reverse" and "Tilt Reverse".. you need to put a jumper on whichever you need (You can pull a jumper off any old computer, or old speed controller)

Also, this will only work if you use the CMUcams servo outputs (I think)
  #6   Spotlight this post!  
Unread 14-01-2006, 21:43
Brad Voracek Brad Voracek is offline
.999~=1
FRC #0399 (Eagle Robotics)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lancaster, CA (SoCal)
Posts: 328
Brad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of lightBrad Voracek is a glorious beacon of light
Send a message via AIM to Brad Voracek
Re: CMUCam pan and tilt

Quote:
Originally Posted by devicenull
Don't remove either. You have to add a jumper. If you look at the doc's, there a "Pan Reverse" and "Tilt Reverse".. you need to put a jumper on whichever you need (You can pull a jumper off any old computer, or old speed controller)

Also, this will only work if you use the CMUcams servo outputs (I think)

Ah yeah thanks, I see it now. Someone else also just pointed this out to me @.@ I can't believe I didn't see that...
  #7   Spotlight this post!  
Unread 14-01-2006, 22:17
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: CMUCam pan and tilt

You can also change the direction in the code where

#define PAN_ROTATION_SIGN_DEFAULT -1
#define TILT_ROTATION_SIGN_DEFAULT 1

in tracking .h
__________________
-= 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
  #8   Spotlight this post!  
Unread 14-01-2006, 23:07
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: CMUCam pan and tilt

I also agree with devicenull in saying that jumping the jumper will only work if you have the servos controlling the pan and tilt connected to the camera board. But if you are connecting it to the RC and using the code written by Kevin you will have to edit the code (in tracking.h) that Bharat Nain posted in the post before this!
  #9   Spotlight this post!  
Unread 14-01-2006, 23:11
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: CMUCam pan and tilt

We had to add a jumper and change the direction in the code in order for our camera to track properly.
__________________
"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)
  #10   Spotlight this post!  
Unread 14-01-2006, 23:20
sheyna's Avatar
sheyna sheyna is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: baltimore, maryland
Posts: 5
sheyna is an unknown quantity at this point
Re: CMUCam pan and tilt

oh aight thank ya'll

~sheyna
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
LabVIEW - CMUcam finds target but cant track bear24rw Programming 6 13-01-2006 21:43
2 (hopefully) easy CMUcam questions. Validius Programming 0 30-12-2005 22:42
Tilt Troubles Mumford 406 Programming 4 29-03-2005 22:19
Dashboard View of Pan and Tilt Servo Values JoeXIII'007 Programming 1 02-02-2005 22:34


All times are GMT -5. The time now is 18:09.

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