Chief Delphi

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

Ianuser 10-02-2007 13:30

Re: CAMERA
 
Hi, I'm the sole programmer on my team of 6 people. I could really use some help on getting the camera to work. I'm using Kevin's Streamlined camera code and am working off of that. I've changed the pan/tilt servos to pwm06 and pwm07, consequently I've taken out the joystick controls for those pwm's in the Default Routine() function. I think I've built the camera correctly, I followed the instructions. However, I'm reading on these forums that I should mount the board upside down? So the power button is on the bottom? Also, in Kevin's Default code I chaned sommething in the user_routines.c in the Process_Data_From_Master_uP() function. Instead of
if(Get_Tracking_State == CAMERA_ON_TARGET)
{
Switch03_LED = 1;
}
else
{
Switch03_LED = 0;
}

I made it:
if(Get_Tracking_State == CAMERA_ON_TARGET)
{
pwm01 = 150; //Drive Motor Left
pwm02 = 150; //Drive Motor Right
Switch03_LED = 1;
}
else
{
Switch03_LED = 0;
}
I just want to see if the camera worked. However, the camera didn't even move once! It only moved the first time I plugged it in. After that, ever time I turn the bot on, the camera never moves! I kept all of the same code that Kevin had in Process_Data_From_Master_uP (the tracking stuff, servo_track stuff) and the camera never moved. Do I have to put the drive code (if the camera see's it, then move forward and look for it again) in the user_routines_fast.c? Any help would be greatly appreciated!


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

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