RILYBOT 4: Let Me See the Source Code!
Each program represents a stage in the development of an NQC implementation of the show-me algorithms.
rb4_08.nqc is the first version. It implements 6-variable behavior, learning a separate linear speed and rotational speed for each of the two bumpers and default speeds for operation when neither bumper has been hit recently.
There will be more programs here eventually send me e-mail if you need to see them sooner.
The NQC programming language uses the standard RCX firmware but allows writing programs in a C-like text-based language, with subroutines, #define macros, complex expressions, a standard set of operators and control structures, etc. Limitations of the firmware are still evident, particularly in the lack of subroutine parameters. (There is no stack in the RCX firmware virtual machine, so expressions have to be compiled into instructions that use unused variable slots for temporary results).
For more information about NQC and to get a copy of NQC for your computer, visit the NQC web site.
GPL notice: This document is Copyright
© 1999 Robert P. Munafo, and is distributed under the Free Software
Foundation General Public License version 2.0. See
the FSF GPL page
for more information.
Robert Munafo's home pages on HostMDS (c) 1996-2010 Robert P. Munafo. about contact
This work is licensed under a Creative Commons Attribution 2.5
License. Details here
s.13