The Robot Web:Challenges! |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
At each meeting we will have a new challenge, a new topic to discuss, and new information to share. On this page, you will find links to the reading assignments which will help you understand or explore discussion topics, hints for completing challenges or tasks, and copies of materials handed out in class. |
Getting Started With Not-Quite C As discussed, to program your RCX, you need several things: a programming language, a text-editor, a compiler, and a debugger. Often, these are all provided in a software package called a development environement. The ROBOLAB and Robotics Invention System that we are all familiar with are two types of development environments. These two environments allow you to develop programs for your RCX using an icon-based graphical environment. But what if you wanted to directly write a program without having to use LEGO's software? Well, first you should thank David Baum who has modified the C programming language into a simplified version called Not Quite-C (NQC). NQC provides all the built in libraries and funcxtions necessary to control a RCX! There a few development evironments out there for NQC programming. On the PC you can use either the RCX Command Center (RCXCC) or BriCX. I've provided a direct link to BriCX because it is the only one that provides USB support. for the LEGO transceiver tower. It will work with serial towers as well. You can use either environment (home pages are linked on in-depth page), but the sample code is in BriCX format and will work, but will look screwy (and colors will be different) in RCXCC. If you decide to use the RCXCC, download the extended version. If you have a Mac, you can download MacNQC -- I've never used this, but the sample program should work the same in it as well, even if it is formatted different. Note: When you are ready to start programming, download the firmware to your RCX using the RIS before you open up your NQC environment. A default firmware is not provided in the NQC software packages, and the environment will not be able to detect your robot unless the firmware is already downloaded. Close RIS before running the NQC environment to avoid any conflicts. If your program won't work, feel free to e-mail it to me, or post it to the discussion group so that I can help you out! GOOD LUCK! |
|
|
|
This site was last updated 04/29/02