modes

package
v0.0.0-...-684ac28 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODES_GENERATOR_POLY = uint32(0xfff409)
)

Variables

This section is empty.

Functions

func DecodeExtendedSquitter

func DecodeExtendedSquitter(message []byte, linkFmt uint, aircraft *types.AircraftData, info *config.BeastInfo)

func DecodeModeAC

func DecodeModeAC(message []byte, isMlat bool, sig float64, knownAircraft *types.AircraftMap, info *config.BeastInfo) types.AircraftData

func DecodeModeS

func DecodeModeS(message []byte, isMlat bool, sig float64, knownAircraft *types.AircraftMap, info *config.BeastInfo) types.AircraftData

func Log

func Log(r metrics.Registry, freq time.Duration, l Logger)

func LogOnce

func LogOnce(r metrics.Registry, l Logger)

func LogScaled

func LogScaled(r metrics.Registry, freq time.Duration, scale time.Duration, l Logger)

Outputs each metric in the given registry periodically using the given logger. Print timings in `scale` units (eg time.Millisecond) rather than nanos.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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