Go to Post Enlighten a man who sometimes has difficulty understanding why others stray outside the box, when the box appears to be an optimized and elegant solution. - JVN [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 04-02-2006, 11:13
TheHolyLancer TheHolyLancer is offline
Registered User
AKA: Lancer
FRC #1535 (Knights of Alloy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SSM ON CA
Posts: 9
TheHolyLancer is an unknown quantity at this point
camera panning the oppsite way

hello, our camera is not panning correctly, i can track its target vertically, but not horzontally, the pan is some how reversed for our camera, we are using a tweaked code from kelvin's site... anyone can help?
  #2   Spotlight this post!  
Unread 04-02-2006, 11:30
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: camera panning the oppsite way

Look in tracking.h


// 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

Change the sign of the pan one. This is if you have the bells and whistles version. You can also when the cam is running press "t" in the terminal window, and change the sign by following the instructions. You just type the letter next to the option in the terminal window to select it.
__________________
www.sabrerobotics.com
  #3   Spotlight this post!  
Unread 04-02-2006, 13:35
Zyik Zyik is offline
Observer
no team
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SLO
Posts: 507
Zyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond reputeZyik has a reputation beyond repute
Re: camera panning the oppsite way

// 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 // -1
#define TILT_ROTATION_SIGN_DEFAULT -1 // +1

We got it to work with this, but try changing the values one at a time, if tilt works, change pan, ect. It took us about 30 mins to get it to finnally track it.
__________________
Team 973 : 06-09
  #4   Spotlight this post!  
Unread 04-02-2006, 13:53
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: camera panning the oppsite way

The instructions for mounting the camera on the bracket caused it to be mounted upside down (We found this out when we took a snapshot in LabView). We changed it, and suddenly it would lose the target all the time, we had to invert both values for it to work.

Change +1 to -1 and so forth.
__________________
My Blog!
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
CMU Camera kills robot controller if not found. Chris_Elston Programming 21 27-03-2006 14:30
How To Use the Google Camera generalbrando Kit & Additional Hardware 2 07-02-2006 16:00
Camera Is Spazzing Out! BrittanyV Programming 15 04-02-2006 13:39
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 02:13.

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