A Programming Tutorial

From Team1370

Revision as of 00:17, 10 July 2012 by 192.162.19.21 (Talk)

Getting Started with the Professional Method

There are easier ways to program your robot controller, including Easy C (new for 2006), however, I am far more familiar with the classic, more complicated method using MPLAB IDE. This perhaps more complicated system is the one which I describe below, but do consider that there are other options and other tutorials available on the web. As this will be outdated soon, it may be useful in the future as an overview of all the tools involved and what they generally do. This tutorial can also be used as a reference on a short topic you may not be fully familiar with, in particular I suggest checking out the section Getting a Serial Terminal Without IFI Loader even if you are an experienced programmer. -Pierce Lopez

1izajK Appreciate you sharing, great blog article.Really thank you! Much obliged.

I think this is a real great blog article.Thanks Again. Really Great.

YWoUbT I am so grateful for your blog article.Much thanks again. Really Cool.

Introduction to Programming

I've actually become lazy at this point, and won't go into the detail I once intended on the matter. However, a couple of quick pointers to help you out: You only need to edit user_routines.c, user_routines_fast.c, and user_routines.h, to do about anything with the programming. Try to learn from example from the code. Another note: Default_Routine() is never called in the camera-capable code I ask you download, because it's commented out in the process_data_from_master_uP() (or whatever it's called) routine.

If you happen to know C++ (this happens to be the 2nd-level programming course at Middletown High), you are off to a running start in understanding C. Much of the syntax is the same, although there are some key differences that can give you some trouble. If you happen to have dificulties, try checking out the Programming Tips section, or head over to ChiefDelphi's forums.

If you want a good C tutorial to get you up to speed on the syntax of the language: [1]

Programming Resources

Here is a link to the current version of our Robot Code 2006, which is a good example of various programming techniques we use.

Personal tools