|
Re: Autonomous Mode
Yes, we mean our drives. Example of our Auto mode:
{
if(Get_Tracking_State() == TARGET_IN_VIEW) /* make sure camera is tracking */
{
if(((((int)PAN_SERVO - 124) * 65)/124) > 20) /* check current pan servo position. 0 > is right, 0 < is left */
{
pwm15 = 167; /* do a left turn */
pwm13 = 87;
}
else if(((((int)PAN_SERVO - 124) * 65)/124) < -20)
{
pwm15 = 87; /* do a right turn */
pwm13 = 167;
}
else
{
pwm13 = 167;
pwm15 = 167;
}
}
This will work fine in Auto Mode (camera tracks, drives work perfectly) when we comment out the Default_Routine in user_routines.c file to look like this (// Default_Routine). Then when we try to use the joysticks after auto mode we cannot. If we go to user_routines.c file and uncomment out the Default_Routine this does not work and the joysticks work perfectly. What are we missing? Thanks for your help. If you don't want to put code on here send me a private message and we can talk that way. Thanks....
|