Class Hierarchy
Compound List
File List
Compound Members
File Members
RotationSensor Class Reference
LEGO rotation sensor class.
More...
Class diagram for RotationSensor:
List of all members.
Public Members
RotationSensor
(unsigned *addr=s1,int initial=0)
Creates a rotation sensor at the specified address.
More...
~RotationSensor
()
Decactivates rotation tracking.
int
position
()
Read current rotational position.
Protected Members
int* volatile
posPtr
Pointer to position value.
Detailed Description
LEGO rotation sensor class.
Member Function Documentation
RotationSensor::RotationSensor (unsigned *
addr
= s1, int
initial
= 0)
Creates a rotation sensor at the specified address.
Parameters:
addr
- One of Sensor::s1, Sensor::s2 or Sensor::s3.
initial
- Initial rotational position.
Rotation sensors are always active.
The documentation for this class was generated from the following files:
sensor.h
-0.1.7 is released under
Mozilla Public License
. Original code © 1998-1999 by
Markus L. Noga
.