bds06

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SurfacePosition

type SurfacePosition struct {
	FormatTypeCode    byte
	MovementStatus    fields.MovementStatus
	MovementSpeed     float32
	GroundTrackStatus bool
	GroundTrack       float32
	Time              fields.Time
	CPRFormat         fields.CompactPositionReportingFormat
	EncodedLatitude   fields.EncodedLatitude
	EncodedLongitude  fields.EncodedLongitude
}

SurfacePosition is a message at the format BDS 0,6

func ReadSurfacePosition

func ReadSurfacePosition(data []byte) (*SurfacePosition, error)

ReadSurfacePosition reads a message at the format SurfacePosition

func (SurfacePosition) CheckCoherency

func (message SurfacePosition) CheckCoherency() error

CheckCoherency checks that the data of the message are somehow coherent, such as for example: no Reserved values, etc.

func (SurfacePosition) GetRegister

func (message SurfacePosition) GetRegister() register.Register

GetRegister returns the Register the message

func (SurfacePosition) ToString

func (message SurfacePosition) ToString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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