Sample Code



All of the following code is written in NQC. Most of these files are explained on other pages within this site. I highly recommend reading through all the comments in the files to get a good idea of what the code is doing.

Communication helper functions

comm.nqh

HTML version

Communication test program 1
(use with comm.nqh)

commtesta.nqc

HTML version

Communication test program 2
(use with comm.nqh)

commtestb.nqc

HTML version

Sends 256 messages as fast as
possible

sendnumbers.nqc

HTML version

Listens for messages

receivenumbers.nqc

HTML version

Sends a message, than listens
for one

sendreceive.nqc

HTML version

Modified communication package
for remote-controlled car

remotecomm.nqh

HTML version

Remote-controlled robot

robot.nqc

HTML version

Remote-controller

remote.nqc

HTML version



Home


LEGO, LEGO Mindstorms, Robotics Invention System, and RCX are registered trademarks of the LEGO Group, Inc.

This project is funded by Carnegie Mellon's Undergraduate Research Initiative. These results represent the views of the author and not those of Carnegie Mellon University.


All material contained within this site is
© 2003 Rachel Gockley
except where otherwise noted.