Log in

View Full Version : A programming template for Autonomous Mode


garyk
05-02-2008, 02:38
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

bronxbomber92
05-02-2008, 19:57
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 :)

psy_wombats
05-02-2008, 20:08
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.