ch.aplu.nxt
Interface CompassListener

All Known Implementing Classes:
CompassAdapter

public interface CompassListener

Class with declarations of callback methods for the compass sensor.


Method Summary
 void toLeft(SensorPort port, double degrees)
          Called when the compass reading points to a direction at the left half-plane of the trigger direction.
 void toRight(SensorPort port, double degrees)
          Called when the compass reading points to a direction at the right half-plane of the trigger direction.
 

Method Detail

toRight

void toRight(SensorPort port,
             double degrees)
Called when the compass reading points to a direction at the right half-plane of the trigger direction.

Parameters:
port - the port where the sensor is plugged in
degrees - the current compass direction

toLeft

void toLeft(SensorPort port,
            double degrees)
Called when the compass reading points to a direction at the left half-plane of the trigger direction.

Parameters:
port - the port where the sensor is plugged in
degrees - the current compass direction