![]() |
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 |
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 :) |
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.
|
| All times are GMT -5. The time now is 18:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi