|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||||
|
|||||
|
Re: autonomous IR Navigation
The default navigate code:
- Waits for joystick button to be pushed - Drives straight away from the back wall - Locks the IR sensors centered facing forwards - Turns the robot until the IR sensor locks onto the beacon - Starts tracking with the IR sensor servos - Drives the robot towards the beacon - Stops robot when the IR sensors servos are at a particular angle. These directives all occur in the navigate.c file. You can add your own code at the end where it says: Code:
case AT_TARGET: Code:
#define LEFT_GOAL 135 #define RIGHT_GOAL 120 There are other parameters in navigate.h that you'll need to tweak to match your robot. Last edited by Mark McLeod : 02-03-2004 at 10:45. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A better autonomous method.. | randomperson | Programming | 4 | 24-02-2004 18:02 |
| Electrical componenets for autonomous navigation | maclaren | Electrical | 10 | 18-12-2003 02:28 |
| crazy idea for autonomous | Mike Ciance | Programming | 16 | 24-04-2003 21:50 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous Kill Switch | UCGL_Guy | Programming | 8 | 15-01-2003 17:39 |