ukcrobots.core
Class RotationSensor
java.lang.Object
|
+--ukcrobots.core.Sensor
|
+--ukcrobots.core.RotationSensor
- public class RotationSensor
- extends Sensor
Model a rotation sensor.
- Version:
- 2001.12.20
- Author:
- d.j.barnes @at@ kent.ac.uk
Method Summary |
void |
setPreviousValue(int aValue)
Resets the canonical sensor value. |
RotationSensor
public RotationSensor(int id)
throws NoSuchDeviceException
- Create a rotation sensor.
- Parameters:
id
- Which input port the sensor is connected to: 1, 2, or 3.
- Throws:
NoSuchDeviceException
- if the port id is not recognised.
setPreviousValue
public void setPreviousValue(int aValue)
- Resets the canonical sensor value.