Package lejos.hardware.gps
Interface GPSListener
-
- All Superinterfaces:
java.util.EventListener
public interface GPSListener extends java.util.EventListenerThis is the interface to manage events with GPS- Author:
- Juan Antonio Brenha Moral
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsentenceReceived(NMEASentence sen)Called whenever a new NMEA sentence is produced by the GPS receiver.
-
-
-
Method Detail
-
sentenceReceived
void sentenceReceived(NMEASentence sen)
Called whenever a new NMEA sentence is produced by the GPS receiver. To identify the type of NMEA sentence received, use NMEASentence.getHeader(). Then cast the sentence into the appropriate type. e.g. (GGASentence)sen
-
-