|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.nxt.CompassAdapter
public class CompassAdapter
Class with empty callback methods for the compass sensor.
Constructor Summary | |
---|---|
CompassAdapter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompassAdapter()
Method Detail |
---|
public void toRight(SensorPort port, double degrees)
toRight
in interface CompassListener
port
- the port where the sensor is plugged indegrees
- the current compass directionpublic void toLeft(SensorPort port, double degrees)
toLeft
in interface CompassListener
port
- the port where the sensor is plugged indegrees
- the current compass direction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |