Package rcx

Provides classes and interfaces for handling and supporting communication with the Lego Mindstorms RCX (versions 1.0 and above)

These classes use the Java Communications API for communicating via the serial port (for RCX version 1.0 or 1.5) as well as the USB port (RCX 2.0 and above) by using the rcx.comm package

In addition to supporting these ports, the architecture abstracts the ports to allow for new types of RCX ports such as a TCP socket port for remote communication and a high level abstraction to motors, sensors and sounds

An emulation mode is also available for developing and testing without an RCX.

See:
          Description

Interface Summary
AllMessagesListener AllMessagesListener - interface to listen to all RCX messages
RCXCommPort RCXCommPort - the interface implemented by all RCX ports
RCXErrorListener RCXErrorListener - listens to error messages only
RCXListener RCXListener - listens to all messages including errors
SensorConstants SensorConstants - constants used by the Sensor class
This class is based on leJOS's class of the same name
 

Class Summary
Motor Motor - encapsulates access to RCX Motors
This class is based on leJOS's class of the same name
RCXLoader RCXLoader - sample communications test with lookup table
RCXOpcode RCXOpcodes - encapsulates the opcode table with utilities to display a lookup table and convert strings and byte arrays
RCXPort RCXPort - Encapsulates and manages communications to and from the RCX
RCXSerialPort RCXSerialPort - represents a serial port
RCXServer RCXServer - used to receive remote tcp connections to control a local RCX
Usage: RCXServer rcxportname [port number]
RCXSocketPort RCXSocketPort - A TCP Socket RCXCommPort
RCXUSBPort RCXUSBPort - RCXCommPort implementation of a USB port
Sensor Sensor - encapsulates access to RCX Sensors
This class is based on leJOS's class of the same name

Before using a sensor, you should set its mode and type with setTypeAndMode using constants defined in SensorConstants.
 

Package rcx Description

Provides classes and interfaces for handling and supporting communication with the Lego Mindstorms RCX (versions 1.0 and above)

These classes use the Java Communications API for communicating via the serial port (for RCX version 1.0 or 1.5) as well as the USB port (RCX 2.0 and above) by using the rcx.comm package

In addition to supporting these ports, the architecture abstracts the ports to allow for new types of RCX ports such as a TCP socket port for remote communication and a high level abstraction to motors, sensors and sounds

An emulation mode is also available for developing and testing without an RCX.

The functionality of this package includes:



Copyright 1998-2002 dario laverde