Battery | Battery-sensor interface (RCX Internal) |
critsec | Critical section data structure |
Lamp | Lamp control interface |
LightSensor | Light-sensor interface (active/passive mode) |
Motor | Motor control interface |
MotorPair | \class MotorPair MotorPair.H c++/MotorPair.H Pair-of-motors control interface. Often our robots use two motors, one on either side, which should be controlled together as one. This class makes this simple by allowing the coder to treat the pair as a single motor. The two motors can be connected to any of the output ports. When creating an instance of this class, simply specify which two output ports are involved. The normal Motor methods speed(), direction(), forward(), reverse(), brake(), and off() still apply. This class adds two new types of control:
- turning about the center (between the two wheels) [left(), right()]
- turning while using one of the wheels as the center of rotation [pivotLeft() and pivotRight()].
-
Note:
-
both motors will be turned off when this class is destroyed.
-
See also:
-
The other control classes: Motor, Sound, Lamp
|
note_t | The note structure describing a single note. -
Note:
-
a song to play is made up of an array of these structures which is then handed to dsound_play() [in C] or Sound::play() [in C++]. The last entry in the list should have the {pitch} value set to PITCH_END Rests should be specified by placing PITCH_PAUSE in the {pitch} value. The duration of the rest is placed in {length}
|
RotationSensor | Rotation-sensor interface (active mode) |
Sensor | Basic sensor interface |
Sound | Sound generation interface |
TemperatureSensor | Temperature-sensor interface |
TouchSensor | Touch-sensor interface (passive mode) |