ukcrobots.simplecore
Class LightSensor
java.lang.Object
|
+--ukcrobots.simplecore.Sensor
|
+--ukcrobots.simplecore.LightSensor
- public class LightSensor
- extends Sensor
Model a light sensor.
Readings are returned as a percentage value.
- Version:
- 2001.12.20
- Author:
- d.j.barnes @at@ kent.ac.uk
Constructor Summary |
LightSensor(int id)
Create a light sensor attached to a device. |
LightSensor
public LightSensor(int id)
throws NoSuchDeviceException
- Create a light sensor attached to a device.
- Parameters:
id
- Which device. A value of 1, 2, or 3.