|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
|||
|
|||
|
Re: Camera isn't working
So would it be something like this or am I doing it wrong?
Code:
if(pan_error > (int)Tracking_Config_Data.Pan_Allowable_Error)
pwm01 = 200
else if(pan_error < -1 * (int)Tracking_Config_Data.Pan_Allowable_Error)
{
// calculate how far we need to step the pan servo
servo_step = pan_error / (int)Tracking_Config_Data.Pan_Gain;
pwm01 = 60
}
Is it anythign even relativly close to this..? Maybe someoen could helpme with this part. Also.. this is the code for the Pan. But what now for the Tilt? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Who has the camera working? | cvbritton | Programming | 43 | 28-01-2007 13:46 |
| Camera shows no love to drive motors | anifinder | Programming | 4 | 13-02-2006 10:31 |
| Camera code not working.... | DemonYawgmoth | Programming | 5 | 11-02-2006 09:21 |
| Camera not working | st1nkm4n | Programming | 7 | 02-02-2006 08:22 |
| Camera stops working when we use camera_set_servos()... | SeanCassidy | Programming | 16 | 13-02-2005 03:08 |