Online Resources - LEGO MINDSTORMS Robots Manual

Unofficial guide
Table of Contents

Advertisement

SetPower(OUT_A + OUT_C, POWER);
OnFwd(OUT_A + OUT_C);
start watcher;
}
task watcher() {
while (true) {
if (SENSOR_2 < DARK2) {
if (SENSOR_3 < DARK3) state = BOTH_ON;
else if (SENSOR_3 > LIGHT3) state = LEFT_ON;
else state = INDETERMINATE;
}
else if (SENSOR_2 > LIGHT2) {
if (SENSOR_3 < DARK3) state = RIGHT_ON;
else if (SENSOR_3 > LIGHT3) state = BOTH_OFF;
else state = INDETERMINATE;
}
else state = INDETERMINATE;
}
}

Online Resources

NQC—Not Quite C
http://www.enteract.com/~dbaum/lego/nqc/
This is the official site for NQC. You can download the current release, read the documentation, or browse a FAQ. Dave Baum has packed a lot of useful information into this site, including such
gems as how to create a cable to connect your Macintosh to the IR tower. This site also includes the definitive NQC documentation.
Lego Robots: RCX Command Center
http://www.cs.uu.nl/people/markov/lego/rcxcc/
RCX Command Center (RcxCC), developed by Mark Overmars, is built on top of NQC. It's a Windows application that provides a friendly graphic interface to the features of NQC. It includes a
syntax-colored program editor, real-time control of the RCX, utilities for making your RCX play music, and useful help files. I highly recommend this application.
Lego Robot Pages [NQC Tutorial]
http://www.cs.uu.nl/people/markov/lego/
Mark Overmars, creator of RcxCC (the previous entry), has written a detailed introduction to NQC. It's available off his main web page as PDF, Word97, PostScript, or RTF. This document is a
gentle and thorough introduction to NQC.
Kevin Saddi's NQC Reference Page
http://home1.gte.net/ksaddi/mindstorms/nqc-reference.html
This page provides a distilled view of NQC. It's very handy when you can't remember the input type constants, or you'd like to see NQC's commands organized by function. Single-line code
samples are also included.
Hitachi Single-Chip Microcomputer H8/3297 Series...
http://semiconductor.hitachi.com/products/pdf/h33th014d2.pdf
This PDF document has all the crufty details on the Hitachi H8 that forms the heart of the RCX. The specific model is the H8/3292, which is covered in the manual. This information is not for
casual browsing—you probably won't need to look here unless you start writing your own firmware. (Hitachi's web site is a little flakey. If you're having trouble with this URL, try starting at the
URL
http://semiconductor.hitachi.com/h8/
and searching for the H8/3292.)
Page 81

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MINDSTORMS Robots and is the answer not in the manual?

Questions and answers

Table of Contents