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 toFalse
for better compatibility.- Raises:
PSPNotSupport – This function is not supported (when
check_platform
is set toTrue
).NotImplementedError – It has not been verified to run on this platform (when
check_platform
is set toTrue
).
- search_port() str [source]
Search GPS port.
Example:
>>> gps = GPS() >>> gps.search_port() '/dev/ttyS3'
- Returns:
the GPS port on the platform
- Return type:
- Raises:
PSPNotSupport – This function is not supported.
PSPNotExist – The device does not exist.
PSPError – General PSP functional error.
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: