|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
A programming template for Autonomous Mode
Hi, all:
I uploaded a C-language template for implementing Autonomous Mode, using a state machine to step through a sequence of steps you want the 'bot to do in A/Hybrid mode. It's about 90% comments if you aren't familiar with state machines or some of the C-language commands. The title is:"A programming template for Autonomous Mode", or ChiefDelphi => CD Media => Papers, search, uploaded by garyk. Comments are welcome - GaryK |
|
#2
|
|||
|
|||
|
Re: A programming template for Autonomous Mode
Looks pretty good. Definitely easy for begginners to understand while maintaining flexibility. Personally I'd implement it with structs that have a Enter, Execute and Leave function. But now relfecting back on that it might be hard to implement with proper OOP support (virtual functions..).
Good job ![]() |
|
#3
|
||||
|
||||
|
Re: A programming template for Autonomous Mode
Very nice, now there is something to refer people who ask "So how do I do autonomous?" sIt's pretty good, except for the fact it relies solely on dead reckoning. You may want to add a note explaining what exactly dead reckoning is and why to use sensors if possible, if you don't want to make sensor drivers and the like for your state machine.
Last edited by psy_wombats : 05-02-2008 at 20:30. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed in autonomous programming for hybrid mode | Team_STORM | Programming | 3 | 21-01-2008 19:11 |
| Help for finding Autonomous Programming Template | vito3693 | VEX | 2 | 23-11-2006 19:01 |
| inputting data for autonomous mode | Lou | Programming | 2 | 16-02-2004 22:26 |
| Programming Autonomous mode | Jared Stofflett | Programming | 3 | 11-11-2003 09:32 |