public class GnssManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GnssManager.GnssManagerState
Enum state machine for 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 closeManager() throws IOException
IOException
- if closing the GnssManager and its low level component on board failedpublic float getAltitude()
public static GnssManager getInstance()
public float getLatitude()
public float getLongitude()
public long getTime()
public float getVelocity()
public void readPosition() throws IOException
IOException
- if no signal was found or if low level function reading the GNSS information failedpublic void switchOff() throws IOException
IOException
- if turning the polling OFF failedpublic void switchOn() throws IOException
IOException