34 lines
512 B
Go
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
|
||
|
}
|