avrora.sim.platform.sensors
Class LightSensor
java.lang.Object
avrora.sim.platform.sensors.Sensor
avrora.sim.platform.sensors.LightSensor
- public class LightSensor
- extends Sensor
The LightSensor
class implements a light sensor like that present on the Mica2.
Fields inherited from class avrora.sim.platform.sensors.Sensor |
data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mcu
protected final AtmelMicrocontroller mcu
channel
protected final int channel
fsm
protected final FiniteStateMachine fsm
names
protected static final java.lang.String[] names
power
protected boolean power
on
protected boolean on
LightSensor
public LightSensor(AtmelMicrocontroller m,
int adcChannel,
java.lang.String onPin,
java.lang.String powPin)