public class GnssManager extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
GnssManager.GnssManagerState
Enum state machine for GnssManager 
 | 
| Constructor and Description | 
|---|
GnssManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
closeManager()
Close the manager instance. 
 | 
float | 
getAltitude()
Return the latest obtained altitude in meters data. 
 | 
static GnssManager | 
getInstance()
Return the singleton instance of GnssManager. 
 | 
float | 
getLatitude()
Get the latest latitude data in degree. 
 | 
float | 
getLongitude()
Return the latest obtained longitude data in degree. 
 | 
long | 
getTime()
Get the epoch time UTC. 
 | 
float | 
getVelocity()
Return the latest obtained velocity in m/s data. 
 | 
void | 
readPosition()
Read the position. 
 | 
void | 
switchOff()
SwitchOff Positioning polling on the system. 
 | 
void | 
switchOn()
SwitchOn Positioning polling on the system. 
 | 
public void readPosition()
                  throws IOException
IOException - if no signal was found or if low level function reading the GNSS information failedpublic void switchOn()
              throws IOException
IOExceptionpublic void switchOff()
               throws IOException
IOException - if turning the polling OFF failedpublic void closeManager()
                  throws IOException
IOException - if closing the GnssManager and its low level component on board failedpublic float getLatitude()
public float getAltitude()
public float getLongitude()
public float getVelocity()
public long getTime()
public static GnssManager getInstance()