Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera Jitters (http://www.chiefdelphi.com/forums/showthread.php?t=42854)

Team905Animator 28-01-2006 14:39

Camera Jitters
 
With the streamlined version of Kevin's code loaded into the FRC Controller, the camera will sweep as it looks for the target. When the camera.c/h terminal.c/h and tracking.c/h is added to our code and

Tracking_Info_Terminal();
Camera_Handler();
Servo_Track();

is called in the Process_Data_From_Master_uP in user_routines.c. With the code loaded into the FRC Controller, the camera will only jitter in place. Any help would be appreciated.

Kevin Watson 28-01-2006 15:24

Re: Camera Jitters
 
Quote:

Originally Posted by Team905Animator
With the streamlined version of Kevin's code loaded into the FRC Controller, the camera will sweep as it looks for the target. When the camera.c/h terminal.c/h and tracking.c/h is added to our code and

Tracking_Info_Terminal();
Camera_Handler();
Servo_Track();

is called in the Process_Data_From_Master_uP in user_routines.c. With the code loaded into the FRC Controller, the camera will only jitter in place. Any help would be appreciated.

Sounds like your code is trying to use the PWM outputs assigned to the pan and tilt servos. Do a global search on pwm01 and pwm02 to see they appear outside of ifi_aliases.h and tracking.h.

-Kevin

Team905Animator 30-01-2006 16:07

Re: Camera Jitters
 
Thank you for your support. Our camera is now operating as it should.

Kevin Watson 30-01-2006 16:09

Re: Camera Jitters
 
Quote:

Originally Posted by Team905Animator
Thank you for your support. Our camera is now operating as it should.

Was it the gain setting?

Edit: Or was something else trying to use those PWM outputs?

-Kevin

Team905Animator 30-01-2006 17:43

Re: Camera Jitters
 
Quote:

Originally Posted by Kevin Watson
Was it the gain setting?

Edit: Or was something else trying to use those PWM outputs?

-Kevin

No, it wasn't the gain setting. The default code mapped the pwm 1/2 to joysticks, commenting them out fixed the problem since we weren't using those two for the robot control.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi