|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface should be implemented by classes that need to receive the relevant GPS events for the application like position or quality of the fix. All these events are generated by the GPS Manager
GPSManager
,
GPSFix
Method Summary | |
void |
gpsNewAltitude(double altitude)
Returns a new altitude |
void |
gpsNewHeading(double heading)
Returns a new heading |
void |
gpsNewPDOP(double pdop)
Returns a new value for the position dillution of precision estimated for the fix |
void |
gpsNewPosition(double longitude,
double latitude)
Returns a new position calculated |
void |
gpsNewQuality(int quality)
Returns a new value for the quality of the fix |
void |
gpsNewSatsUsed(int satUsed)
Returns a new value for the number of satellites used in the fix |
void |
gpsNewStatus(int status)
Returns a new value for the status of the GPS |
Method Detail |
public void gpsNewPosition(double longitude, double latitude)
longitude
- latitude in degreeslatitude
- latitude in degreespublic void gpsNewAltitude(double altitude)
altitude
- altitude in meterspublic void gpsNewHeading(double heading)
heading
- heading in degreespublic void gpsNewSatsUsed(int satUsed)
satUsed
- number of satellites usedpublic void gpsNewPDOP(double pdop)
pdop
- position dillution of precisionpublic void gpsNewQuality(int quality)
quality
- one of the following values:
- FIX_QUALITY_INVALID if the fix is invalid
- FIX_QUALITY_GPS if the fix is an autonomous GPS fix
- FIX_QUALITY_DGPS if the fix is a differential GPS fixpublic void gpsNewStatus(int status)
status
- one of the following values:
- FIX_DIMENSIONS_INVALID if the GPS has not a valid fix (less than 3 valid satellites)
- FIX_DIMENSIONS_2D if the GPS is in 2D mode (less than 4 valid satellites)
- FIX_DIMENSIONS_3D if the GPS is in 3D mode
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |