|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Quote:
|
|
#17
|
||||
|
||||
|
Quote:
Originally we had our switch wired up such that by flipping one switch, we grounded the auto pin and un-grounded the disabled pin at the exact same time. When we did it this way, there were 1 or 2 packets that went to the robot that enabled the robot but didn't have autonomous set. When we instead wired it up with two switches such that we could enable autonomous and then after that enable the robot, it would go straight from disabled with no auto to enabled with auto all at once. My guess is that this is the same change that IFI made to the arena control system. |
|
#18
|
||||
|
||||
|
See.. these comp mode and other crap just confuse everyone... heres what we did:
if auto_button = 1 OR auton_mode = 1 then select (auto_select) case 0 to 2 'line tracking run 6 'case 4 to 7 'dead reckoning run 7 case 8 'joy 1 run 2 case 9 'joy 2 run 3 case 10 'joy 3 run 4 case 11 'joy 4 run 5 case 12 'joy 5 run 2 case 13 'joy 6 run 3 case 14 'joy 7 run 4 case 15 'joy 8 run 5 endselect else gosub operator_control endif When the autonomous program detects that auton_mode = 0 and someone has moved the joystick then it resets all its varibles and returns control to the first slot.. like so: if auton_mode = 0 then if p1_x > 142 OR p1_x < 112 OR p1_y > 142 OR p1_y < 112 then run 1 endif endif This is why multiple slots are so much easier to program with... and by the way, have I mentioned yet that our autonomous mode has worked flawlessly in all of our competition matches? Last edited by randomperson : 26-03-2003 at 19:16. |
![]() |
| 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 | AntmanIV | General Forum | 1 | 17-02-2003 13:30 |
| autonomous mode timer | Don | Programming | 6 | 09-02-2003 22:16 |
| autonomous mode | Stephanie | Programming | 2 | 25-01-2003 19:57 |
| autonomous mode? | bigwalt | Technical Discussion | 1 | 21-01-2003 01:14 |