acmi

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

package acmi streams simulation data from a TacView Air Combat Maneuvering Instrumentation (ACMI) data source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMI

type ACMI interface {
	sim.Sim
	// Run should be called to stream ACMI data. It may be called multiple times,
	// but should not be called concurrently. It may return an error that wraps io.EOF
	// to indicate the end of the ACMI data stream, which may occur when the sim has restarted.
	// If that occurs, recovery is usually possible by restarting the stream.
	Run(context.Context) error
}

ACMI is an interface for streaming simulation data from a Tacview ACMI data source.

func New

func New(acmi *bufio.Reader, updateInterval time.Duration) ACMI

New creates a new ACMI streamer. The ACMI data is read from the provided reader. The updateInterval is the interval at which the streamer will publish to the updates channel. The endDelay is the duration to wait after the last ACMI data is read before considering the stream to have ended.

Jump to

Keyboard shortcuts

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