gpmf

package
v0.0.0-...-f0186d2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACCL

type ACCL struct {
	X float64 `json:"accl_x"`
	Y float64 `json:"accl_y"`
	Z float64 `json:"accl_z"`
}

ACCL - 3-axis accelerometer measurements (meters/sec^2)

func (*ACCL) Parse

func (accl *ACCL) Parse(bytes []byte, scale *SCAL) error

Parse (ACCL) - Parse byte slice into ACCL struct and scale

type GPS5

type GPS5 struct {
	Lat     float64 `json:"lat"`    // Latitude (Degrees)
	Lon     float64 `json:"lon"`    // Longitude (Degrees)
	Alt     float64 `json:"alt"`    // Altitude
	Speed2D float64 `json:"spd_2d"` // m/s
	Speed3D float64 `json:"spd_3d"` // m/s
}

GPS5 - GPS data (latitude/longitude/altitude/speed/3D/time)

func (*GPS5) Parse

func (gps5 *GPS5) Parse(bytes []byte, scale *SCAL) error

Parse (GPS5) - Parse byte slice into GPS5 struct and scale

type GPSF

type GPSF struct {
	Fix uint32 `json:"gps_fix"`
}

GPSF - GPS fix (0: No Fix, 2: 2D, 3: 3D)

func (*GPSF) Parse

func (gpsf *GPSF) Parse(bytes []byte) error

Parse (GPSF) - Parse byte slice into GPSF struct

type GPSP

type GPSP struct {
	Accuracy uint16 `json:"gps_accuracy"`
}

GPSP - GPS position accuracy (centimeters)

func (*GPSP) Parse

func (gpsp *GPSP) Parse(bytes []byte) error

Parse (GPSP) - Parse byte slice into GPSP struct

type GPSU

type GPSU struct {
	Time time.Time
}

GPSU - GPS acquired UTC timestamp

func (*GPSU) Parse

func (gpsu *GPSU) Parse(bytes []byte) error

Parse (GPSU) - Parse byte slice int GPSU struct

type GYRO

type GYRO struct {
	X float64 `json:"gyro_x"`
	Y float64 `json:"gyro_y"`
	Z float64 `json:"gyro_z"`
}

GYRO - 3-axis gyroscope measurement (radians/sec)

func (*GYRO) Parse

func (gyro *GYRO) Parse(bytes []byte, scale *SCAL) error

Parse (GYRO) - Parse byte slice into GYRO struct and scale

type KLV

type KLV struct {
	FourCC []byte // Four CC Key
	Format byte   // Format of the data
	Size   uint8  // Size of the object
	Count  uint16 // Number of object
}

KLV - Go-Pro-Metadata-Format Key-Length-Value

func (*KLV) Parse

func (klv *KLV) Parse(bytes []byte) error

Parse (KLV) - Parse byte slice into KLV struct

type SCAL

type SCAL struct {
	Divisor []int
}

SCAL - Slice of divisors for scaling data

func (*SCAL) Parse

func (scale *SCAL) Parse(bytes []byte, size int64) error

Parse (SCAL) - Parse byte slice into SCAL struct

type TMPC

type TMPC struct {
	Temp float32
}

TMPC - Temperature (Degrees C)

func (*TMPC) Parse

func (tmpc *TMPC) Parse(bytes []byte) error

Parse (TMPC) - Parse byte slice int TMPC struct

type TSMP

type TSMP struct {
	Samples uint32
}

TSMP - Total number of samples

func (*TSMP) Parse

func (tsmp *TSMP) Parse(bytes []byte) error

Parse (TSMP) - Parse byte slice int TSMP struct

Jump to

Keyboard shortcuts

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