07.09.09
New Pages – My Bookshelf & My Code Library
I added a couple of new pages to the blog where I posted a list of my robot books, and my Mindstorms behavior-based framework code (RobotC). I found that as I posted more articles, the code was getting lost.
I plan to add a change log for the framework, so you can all get the latest versions and know what changes were made (and why…).
I also created sections for behavior code to be posted, but I am not exactly sure if that makes sense because each robot requires certain sensors and structure in order for a given behavior to make any sense.
I think I will summarize each robot project and post zipped code for each experiment for you to download in this one place. This way you can see the robot, and view the sample associated code.
WordPress Tags: Code,Library,robot,Mindstorms,behavior,framework,RobotC
07.01.09
Collecting my behavior-based RobotC code in one place
Currently, All code attached to the robot articles and is self-contained (the framework, behaviors, sensor drivers, etc… in one zip file) . I think this makes the most sense for each robot so people can download all they need in one shot, but I wonder if I should create a pool of code that accumulates the latest versions of the framework and each behavior I created so people can download one or more files as samples to build upon or create their own arrangement. What do you think?
The tricky part of putting each file online is the framework is being changed as I go, so keeping everything in sync may be a chore.
For instance, this week I made a change to the timer macros that allow a programmer to create and name multiple timers within a behavior. That means previous code will not function (if you over-wrote the framework file) until you update behaviors to name the timer in the following functions.
CreateTimer(); ---> CreateTimer(timerName);
StartTimer(); ---> StartTimer(timerName);
TimesUp(time); ---> TimesUp (timerName, expirationTime);