GpsReader class

Listens to the GPS and sends its output to the Dashboard.

Call init to start listening and dispose to stop.

Inheritance

Constructors

GpsReader()

Properties

device → SerialDevice
The serial device representing the GPS.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Closes the connection to the device.
override
init() Future<bool>
Initializes the connection to the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisconnect() Future<void>
A callback to run when the program has disconnected from the Dashboard.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseNMEA(String nmeaSentence) → GpsCoordinates?
Parses an NMEA sentence into a GpsCoordinates object.