View Single Post
  #5   Spotlight this post!  
Unread 18-01-2006, 18:31
Issues Issues is offline
Registered User
FRC #0525
 
Join Date: Nov 2005
Location: Iowa
Posts: 11
Issues is on a distinguished road
Re: frc_camera not working but labview does

We have it calibrated in the right colorspace, but after further thought we think it is the direction the server tries to adjust itself when it is tracking that is backwards. Right when the red tracking light goes on, it moves away from the target. We tried flipping the jumpers, but since it is being controlled from the code we have to do it there... I was wondering if doing something like this would work...

Code:
in tracking.c

Change 

pan_error = (int)T_Packet_Data.mx - (int)Tracking_Config_Data.Pan_Target_Pixel;

to

pan_error = (int)Tracking_Config_Data.Pan_Target_Pixel-(int)T_Packet_Data.mx ;