ch.aplu.nxt
Class GyroAdapter

java.lang.Object
  extended by ch.aplu.nxt.GyroAdapter
All Implemented Interfaces:
GyroListener

public class GyroAdapter
extends java.lang.Object
implements GyroListener

Class with empty callback methods for the gyro sensor.


Constructor Summary
GyroAdapter()
           
 
Method Summary
 void fast(SensorPort port, int level)
          Empty method called when the gyro value overruns the trigger level.
 void slow(SensorPort port, int level)
          Empty method called when the gyro value under-runs the trigger level.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GyroAdapter

public GyroAdapter()
Method Detail

fast

public void fast(SensorPort port,
                 int level)
Empty method called when the gyro value overruns the trigger level. Override it to process the event.

Specified by:
fast in interface GyroListener
Parameters:
port - the port where the sensor is plugged in
level - the current gyro value.

slow

public void slow(SensorPort port,
                 int level)
Empty method called when the gyro value under-runs the trigger level. Override it to process the event.

Specified by:
slow in interface GyroListener
Parameters:
port - the port where the sensor is plugged in
level - the current gyro level