Documentation ¶
Overview ¶
Package gps provides a driver for GPS receivers over UART and I2C
Index ¶
Constants ¶
View Source
const ( BYTES_AVAIL_REG = 0xfd DATA_STREAM_REG = 0xff )
View Source
const (
I2C_ADDRESS = 0x42
)
The I2C address which this device listens to.
Variables ¶
This section is empty.
Functions ¶
func FlightMode ¶
func SetCfgGNSS ¶
Types ¶
type Fix ¶
type Fix struct { Valid bool Time time.Time Latitude float32 Longitude float32 Altitude int32 Satellites int16 }
fix is a GPS location fix
type GPSDevice ¶
type GPSDevice struct {
// contains filtered or unexported fields
}
Device wraps a connection to a GPS device.
func (*GPSDevice) NextSentence ¶
ReadNextSentence returns the next valid NMEA sentence from the GPS device.
func (*GPSDevice) WriteBytes ¶
WriteBytes sends data/commands to the GPS device
Click to show internal directories.
Click to hide internal directories.