GPS

package
v0.0.0-...-8707f5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CourseTo

func CourseTo(lat1 float32, lon1 float32, lat2 float32, lon2 float32) float32

func Distance

func Distance(lat1 float64, lon1 float64, lat2 float64, lon2 float64, unit ...string) float64

Calculate the distance between two lat/lon positions

Types

type Packet

type Packet struct {
	Latitude  float32 `json:"latitude"`
	Longitude float32 `json:"longitude"`
	Altitude  float32 `json:"altitude"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL