libjuju-go/src/juju.net.nz/gps/sentences.go
Michael Hope 8479106022 Split the GPS parser out from nppilot.
Split the GPS parser into smaller source files.
Added tests to the parser.
2014-06-24 22:03:42 +02:00

34 lines
512 B
Go

package gps
type Sentence interface {
}
type GGA struct {
Time float64
Latitude float64
Longitude float64
Quality int
NumSatellites int
HDOP float32
Altitude float64
}
type VTG struct {
TrueCourse float32
// MagneticCourse float64
Speed float32
SpeedInKmh float32
Mode string
}
type RMC struct {
Time float64
Status string
Latitude float64
Longitude float64
Speed float32
Track float32
Date string
Mode string
}