Go to Post The future is a dark and mysterious place, and trying to force our current methods on that are patently absurd. - Taylor [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 13-02-2006, 15:35
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
T_Packet_Data.mx probs

I got the camera scanning and such, the only problem is that the refinment part of the code doesn't work! The camera just turns one way until it looses the atrget. I've looked at the code and can't find any obvious flaws and thought taht maybe T_Packet is different from .my. Maybe it doesn't go neg or something? Or is there just something in Kevins code I missed? I set the pan error high so it won't need the routine, but that kills the alignment code I'm working on. Any suggestion to fix the code would be great.
  #2   Spotlight this post!  
Unread 13-02-2006, 17:24
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: T_Packet_Data.mx probs

Quote:
Originally Posted by Ryan O
I got the camera scanning and such, the only problem is that the refinment part of the code doesn't work! The camera just turns one way until it looses the atrget. I've looked at the code and can't find any obvious flaws and thought taht maybe T_Packet is different from .my. Maybe it doesn't go neg or something? Or is there just something in Kevins code I missed? I set the pan error high so it won't need the routine, but that kills the alignment code I'm working on. Any suggestion to fix the code would be great.
(This has been discussed in other threads, but...) You probably have your camera mounted upside down from the way Kevin's code assumes. You have (at least) two options:
  1. Invert your camera. (Turn it upside-down.)
  2. Change the PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT parameters in tracking.h.*

*Or, if you're using the "Bells and Whistles" version of the camera code, use the tracking menu to change them.
__________________
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
  #3   Spotlight this post!  
Unread 13-02-2006, 19:03
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: T_Packet_Data.mx probs

Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally
  #4   Spotlight this post!  
Unread 13-02-2006, 19:17
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: T_Packet_Data.mx probs

Quote:
Originally Posted by Ryan O
Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally
That's exactly what PAN_ROTATION_SIGN_DEFAULT and TILT_ROTATION_SIGN_DEFAULT do.
__________________
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
  #5   Spotlight this post!  
Unread 14-02-2006, 00:34
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: T_Packet_Data.mx probs

Quote:
Originally Posted by Ryan O
Thanks for the suggestion. Shortly after I decided to post here, I was tinkering with the code. I found by making search step equal to what it was originally equal to multiplied by negitive one, the camera operates normally
You should consider mounting the camera such that the tilt axis extends through the camera. You'll get better tracking performance if you do. Once you've done that, start with a fresh copy of the camera code and it should just work.

-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
Fisher price motor gear specs archiver 2000 4 23-06-2002 23:23
"Official" IRI Announcement David Kelly Off-Season Events 35 04-06-2002 18:32


All times are GMT -5. The time now is 01:35.

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