|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Programming Autonomous mode
How do you program Autonomous mode on the new controllers? I just figured I would go into the main.c file and fix it up the way I wanted it. The comments say not to edit this though, so any help on where to call the functions I write for Autonomous mode would be appreciated. In addition, how do you stop the joystick from getting input?
|
|
#2
|
|||||
|
|||||
|
In the user_functions.c there's a part that says "INSERT YOUR OWN CODE HERE" (or something to that effect). I'm assuming that's where you insert your own code
![]() On the other question, I believe the Programming Guide says there's no way to switch between autonomous and user modes on the EDU-Controller. (I might be wrong on that one) But you COULD make some auto. code and then upload diff code to practice driving... ![]() |
|
#3
|
|||||
|
|||||
|
From what I gather the only files, or whatever they are called, that you should change are the user_routines and the user_routines_fast. The other ones shouldn't be changed.
|
|
#4
|
||||
|
||||
|
I would just connect a switch to one of the digital inputs and use that to control when the bot is in "autonomous" mode vs. driver-controlled mode.
Then just use an "if" statement: Code:
if (rc_dig_in16) {
// Run Autonomous Code
} else {
// Run Driver Control Code
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |
| autonomous sensor programming ? | Laura_d | Programming | 1 | 10-02-2003 17:46 |
| autonomous mode timer | Don | Programming | 6 | 09-02-2003 22:16 |
| How do you do the autonomous programming? | Ryan Collings | Programming | 11 | 07-02-2003 19:38 |
| autonomous mode? | bigwalt | Technical Discussion | 1 | 21-01-2003 01:14 |