Documentation ¶
Index ¶
- type Client
- func (c *Client) CalculateCheckSum(stringToCheck string) string
- func (c *Client) Close() error
- func (c *Client) Connect() error
- func (c *Client) ConnectTCP() error
- func (c *Client) GetCoordinatesDM() CoordinatesDM
- func (c *Client) GetGGAString() string
- func (c *Client) GetSourceTable() ([]byte, error)
- func (c *Client) SendGGAToServer() error
- type CoordinatesDM
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Options *Options net.Conn io.ReadCloser // contains filtered or unexported fields }
Client represents an NTRIP client.
func (*Client) CalculateCheckSum ¶
CalculateCheckSum calculates the checksum for a given string
func (*Client) ConnectTCP ¶
ConnectTCP connects to the NTRIP server using TCP and returns a ReadCloser
func (*Client) GetCoordinatesDM ¶
func (c *Client) GetCoordinatesDM() CoordinatesDM
GetCoordinatesDM converts the latitude and longitude to degrees and minutes
func (*Client) GetGGAString ¶
GetGGAString returns a GGA string for the current time and location
func (*Client) GetSourceTable ¶
GetSourceTable retrieves the source table from the NTRIP server.
func (*Client) SendGGAToServer ¶
SendGGAToServer sends a GGA string to the NTRIP server
type CoordinatesDM ¶
type CoordinatesDM struct { LonDeg int LatDeg int LonMin float64 LatMin float64 FlagN string FlagE string }
CoordinatesDM represents the latitude and longitude in degrees and minutes.
Click to show internal directories.
Click to hide internal directories.