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.
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).
GPL notice: This document and the ideas contained herein are Copyright © 1999-2018 Robert P. Munafo. The source code is provided under the GNU General Public License version 3.0, and the rest under the Creative Commons license as linked from the footer. See the FSF GPL page for more information.
This page was written in the "embarrassingly readable" markup language RHTF, and was last updated on 2018 Jan 06. s.11