Documentation
¶
Index ¶
- Variables
- func Checksum(s string) byte
- func Knt2Kmh(s float64) float64
- func NMEADate(timestamp time.Time) string
- func NMEALatLon(pos float64) string
- func NMEATimestamp(timestamp time.Time) string
- func Sentence(n nmea_sentence) string
- func Wind2Angle(dir float64) float64
- func WriteMessage(b NMEABoat, seq []string) string
- type GGA
- type GLL
- type HDT
- type MWV
- type NMEABoat
- type RMC
- type VHW
- type VTG
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NMEATimestamp ¶
Format a time.Time to NMEA GLL time HHmmss.ss
func Wind2Angle ¶
Convert an relative wind direction (TWA,AWA) (+/- 0->180) to an absolute wind angle (0->359)
func WriteMessage ¶
Types ¶
type GGA ¶
type GGA struct {
GLL
// contains filtered or unexported fields
}
GGA - Geographic Position - Latitude/Longitude
type GLL ¶
type GLL struct {
// contains filtered or unexported fields
}
GLL - Geographic Position - Latitude/Longitude
type HDT ¶
type HDT struct {
// contains filtered or unexported fields
}
HDT - Heading True - Actual vessel heading in degrees true
type MWV ¶
type MWV struct {
// contains filtered or unexported fields
}
MWV can be send for True wind or Aparent wind
Click to show internal directories.
Click to hide internal directories.