mdbtxt1
mdbtxt2
Proceed to Safety

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.

rb4_09.nqc

rb4_10.nqc

rb4_11.nqc

rb4_12.nqc


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 (formerly here).

Back to RILYBOT 4


GPL notice: This document and the ideas contained herein are Copyright © 1999-2024 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.


Robert Munafo's home pages on AWS    © 1996-2024 Robert P. Munafo.    about    contact
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Details here.

This page was written in the "embarrassingly readable" markup language RHTF, and was last updated on 2014 Dec 11. s.27