In order to get the pan/tilt angles in degrees based on the PWM values, you need to find what the pan and tilt PWM values are when the camera is centered, and the change in degrees per each PWM step.
Here is an (untested) example of how to calculate the angle in degrees after those values have been obtained:
Code:
#define PAN_CENTER (whatever the pan PWM value is when the camera is centered)
#define TILT_CENTER (whatever the tilt PWM value is when the camera is centered)
#define PAN_RATIO (ratio of change in pan angle to change in pan PWM value)
#define TILT_RATIO (ratio of change in tilt angle to change in tilt PWM value)
unsigned char pan;
unsigned char tilt;
int panAngle;
int tiltAngle;
CaptureTrackingData(0, 0, 0, 0, 0, 0, 0, 0, &pan, &tilt); // Get the tracking data
panAngle = (pan - PAN_CENTER) * PAN_RATIO; // Calculate the pan angle
tiltAngle = (tilt - TILT_CENTER) * TILT_RATIO; // Calculate the tilt angle
This should give you roughly the number of degrees from the center point, either positive or negative.