|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
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.... |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autonomous Mode | tysonwormus | Rumor Mill | 11 | 08-01-2004 22:59 |
| Autonomous mode | AntmanIV | General Forum | 1 | 17-02-2003 13:30 |
| autonomous mode | Stephanie | Programming | 2 | 25-01-2003 19:57 |
| Autonomous Mode | David Bryan | Programming | 1 | 21-01-2003 21:15 |
| autonomous mode? | bigwalt | Technical Discussion | 1 | 21-01-2003 01:14 |