API Reference

qwiic_titan_gps

Python library for SparkFun GPS Breakout - XA1110

This python package is a port of the existing SparkFun GPS Arduino Library.

This package can be used in conjunction with the overall SparkFun Qwiic Python Package

New to Qwiic? Take a look at the entire SparkFun Qwiic ecosystem.

class qwiic_titan_gps.QwiicTitanGps(address=None, i2c_driver=None)[source]
Parameters:
  • address – The I2C address to use for the device. If not provided, the default address is used.
  • i2c_driver – An existing i2c driver object. If not provided a driver object is created.
Returns:

The Qwiic Titan GPS device object.

Return type:

Object

add_to_gnss_messages(sentence)[source]

This function takes parsed GNSS data and assigns them to the respective dictionary key. :return: Returns True :rtype: Boolean

begin()[source]

Initialize the data transmission lines.

Returns:Returns True on success, False on failure
Return type:boolean
connected

Determine if a GPS device is connected to the system..

Returns:True if the device is connected, otherwise False.
Return type:bool
get_nmea_data()[source]

This function takes a list of GNSS sentences and uses the pynmea2 parser to parse the data. :return: Returns True on success and False otherwise :rtype: Boolean

get_raw_data()[source]

This function pulls GPS data from the module 255 bytes at a time. :return: A string of all the GPS data. :rtype: String

is_connected()[source]

Determine if a GPS device is connected to the system..

Returns:True if the device is connected, otherwise False.
Return type:bool
prepare_data()[source]

This function seperates raw GPS data from the module into sentences of GNSS data. :return: A list of all the gathered GPS data. :rtype: List