View Single Post
  #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