Go to Post When you boil it down, the name “FIRST-a-holic” represents our passion for changing the world, our energy for difficult challenges, and our bravery in facing unknowns. - Ken Leung [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 24-01-2007, 14:57
Tangello_angela Tangello_angela is offline
Registered User
FRC #1676 (Pascack Pi-oneers)
Team Role: Electrical
 
Join Date: Oct 2006
Rookie Year: 2007
Location: Pascack valley hillsdale NJ
Posts: 4
Tangello_angela is an unknown quantity at this point
Send a message via AIM to Tangello_angela
tilt/pan away

What should i do if when try to track the light with the CMU cam, in the LabView GUI app, the camera find and tracks the light but instead of moving towards the light it moves away?

If the camera is mounted normally the tilt is messed up. If we mount it upside down the pan gets messed up.
  #2   Spotlight this post!  
Unread 24-01-2007, 15:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: tilt/pan away

I don't understand what you're trying to do. You can't use the LabView application to track the target light. The tracking software runs on the Robot Controller.

If you're using the marvelous code from Kevin Watson, there are macros which define the pan and tilt directions. Change the sign of the appropriate one to make the camera seek instead of avoid the light. (I don't know enough about the EasyC function to tell you what to change in it.)
  #3   Spotlight this post!  
Unread 24-01-2007, 15:43
chapmatr's Avatar
chapmatr chapmatr is offline
Zippidy bling-zap whippy-wog snizin
AKA: Travis (Lead Programmer)
FRC #1676 (Pascack Pioneers)
Team Role: Driver
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Hillsdale NJ
Posts: 19
chapmatr is an unknown quantity at this point
Send a message via AIM to chapmatr
Re: tilt/pan away

? We have the labview CMUcam2 GUI. The program tracks the light, but gives the servo a negative value, so it tilts away from the light, then even more, because the image is "upside down." Pan is fine though.
__________________
Did you know that 87% of all online statiscs are made up?
  #4   Spotlight this post!  
Unread 24-01-2007, 16:07
Cynix Cynix is offline
Registered User
FRC #0074
 
Join Date: Jan 2007
Location: Michigan
Posts: 5
Cynix is an unknown quantity at this point
Re: tilt/pan away

If you're using Kevin Watson's tracking code look in tracking.h and find
Code:
#define TILT_ROTATION_SIGN_DEFAULT
That will be set to either 1 or -1, if your pan is tracking the wrong way try switching the value. If you mount the camera the other way you may need to adjust the pan rotation sign also/instead.
  #5   Spotlight this post!  
Unread 24-01-2007, 16:20
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,187
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: tilt/pan away

Quote:
Originally Posted by Tangello_angela View Post
What should i do if when try to track the light with the CMU cam, in the LabView GUI app, the camera find and tracks the light but instead of moving towards the light it moves away?

If the camera is mounted normally the tilt is messed up. If we mount it upside down the pan gets messed up.
Are you using last year's camera? The 05/06 version of the CMUCam2 had servo control headers on it. When the camera was in "tracking" mode, it would compute the output values needed to center its vision on a particular color blob. Kevin's camera tracking code (servos controlled on RC, NOT CmuCam) simply tricks the CMUCam into thinking it is controlling the servos. The software on the CMUCam constantly updates these servo values and spits them out to the headers. This is why your camera will track when using the LabView App.

This year's camera does not have on board servo headers. With the addition of the illuminated target, there is really no good reason to use the LabView app, except to see what the camera is processing.
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
Why use the RC to control Pan/Tilt Joe Hershberger Programming 15 30-01-2007 23:41
pan/tilt connection for 2007 camera kasemodz Programming 5 21-01-2007 14:21
Question about pan/tilt itsme Programming 1 12-01-2007 10:49
pan & tilt errors itzrobz Programming 2 19-02-2006 19:12
CMUCam pan and tilt sheyna Programming 9 14-01-2006 23:20


All times are GMT -5. The time now is 17:37.

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