|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
I'm guessing you want to know how to start. Well, granted, I am a rookie, but I have learned a lot.
1.Make a main subroutine and an autonomous subroutine If auton_mode = 0 then Skip_Autonomous Gosub AUTONOMOUS ' Jumps to subroutine for autonomous movement ' Goto NEXT_SCAN Skip_Autonomous: Gosub Normal_operation ' Jumps to subroutine for normal operation ' NEXT_SCAN: Or something like that in between Serin and Serout 2. Write pseudocode for how you want the robot to behave If sensor1 is lit, turn left If sensor 2 is lit, go straight if sensor 3 is lit, turn right 3. Be sure not to mess up any of your other code |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Autonomous mode | Jared Stofflett | Programming | 3 | 11-11-2003 09:32 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| Autonomous programming | Dush | Programming | 4 | 20-02-2003 09:54 |
| autonomous sensor programming ? | Laura_d | Programming | 1 | 10-02-2003 17:46 |
| How far is everyone in their autonomous programming | AlphaOmega870 | Programming | 33 | 21-01-2003 21:03 |