[][src]Module adafruit_gps::gps

Gps

This module controls the opening and reading of the port to the gps.

This is the main module around which all other modules interact. It contains the Gps structure, open port and GpsData that are central to using this module.

Structs

Gps

This is the main struct around which all commands are centered. It allows for communication with the GPS module via the open port.

Enums

GpsSentence

Enum for the gps.update() method.

PortConnection

Enum for if the port connection to the gps is valid, gave invalid bytes, or is not connected

Functions

is_valid_checksum

Checks if a sentence is a valid sentence by checksumming the sentence and comparing it to the given checksum. Returns true for valid sentence, false for invalid. The format of the sentence should be $sentence*checksum

open_port

Opens the port to the GPS, probably /dev/serial0 Default baud rate is 9600