public class CompassAdapter extends java.lang.Object implements CompassListener
| Constructor and Description | 
|---|
CompassAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
toLeft(SensorPort port,
      double degrees)
Empty method called when the compass reading points to a direction at the left
 half-plane of the trigger direction. 
 | 
void | 
toRight(SensorPort port,
       double degrees)
Empty method called when the compass reading points to a direction at the right
 half-plane of the trigger direction. 
 | 
public void toRight(SensorPort port, double degrees)
toRight in interface CompassListenerport - the port where the sensor is plugged indegrees - the current compass directionpublic void toLeft(SensorPort port, double degrees)
toLeft in interface CompassListenerport - the port where the sensor is plugged indegrees - the current compass direction