View Single Post
  #2   Spotlight this post!  
Unread 18-03-2006, 18:44
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: T_Packet_Data.mx vs PAN_SERVO

Yea, the way Kevin's code behaves is it centers the camera dead onto the vision target. Therefore, the .mx should always be about dead-center (or half of 119). The PAN_SERVO gets adjusted to get the .mx to center. That's why you originally had it backwards.

If you find it's still slightly off center (maybe your camera is mounted crooked), you can tweak the #DEFINEs that set the default center for things in camera.h and tracking.h