6. API - GPS

6.1. Regular Classes

The following classes are intended for general use with the devices they represent. All classes in this section are concrete (not abstract).

6.1.1. GPS

class lannerpsp.GPS(check_platform: bool = False)[source]

Global Positioning System.

Parameters:

check_platform (bool) – Set to True to check if the platform supports this feature. Defaults to False for better compatibility.

Raises:
search_port() str[source]

Search GPS port.

Example:

>>> gps = GPS()
>>> gps.search_port()
'/dev/ttyS3'
Returns:

the GPS port on the platform

Return type:

str

Raises:

6.2. Supported Platforms

Note

GPS is commonly used on V-Series or R-Series platforms. See Vehicle/Rail Computer for more information.

The following platforms have been verified and confirmed to be supported: