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 ¶
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.
Click to show internal directories.
Click to hide internal directories.