xp2ts

package module
v0.0.0-...-1c397dd Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

README

XP2TS

builds.sr.ht status

X-Plane plugin for automatically connecting to IVAO Teamspeak2 servers. For use info take a look at the guide

To download the compiled plugin, go to the builds page, locate the latest build job (eg. #54923) and go to the builds page by clicking on that number/link. The page gives you a xp2ts.tar.bz2 which has to be extraced into $XPLANE/Resources/plugins like other plugins. The directory structure within the archive has to be maintained.

To report bugs, go to the issue tracker

Documentation

Index

Constants

View Source
const (
	Wine = "wine"
	Exe  = "C:\\Program Files (x86)\\Teamspeak2_RC2\\client_sdk\\tsControl.exe"
)

Variables

View Source
var (
	ErrEmptyInput     = errors.New("empty input")
	ErrMissingGeneral = errors.New("missing !GENERAL section")
	ErrWrongVersion   = errors.New("wrong version encountered")
)

Functions

This section is empty.

Types

type API

type API interface {
	DebugString(string)
	CreateFlightLoop(func() float64) FlightLoopID
	FindDataRef(string) DataRef
	GetDatai(DataRef) int32
	GetDataf(DataRef) float32
}

type ATC

type ATC struct {
	Name      string
	Frequency Freq
	Position  LatLng
	TS        string
}

type DataRef

type DataRef interface{}

Opaque types from SDK

type FlightLoopID

type FlightLoopID interface{}

type Freq

type Freq struct {
	// contains filtered or unexported fields
}

func NewFreq

func NewFreq(s string) (Freq, bool)

func NewFreqi

func NewFreqi(dhz int32) (Freq, bool)

func (Freq) Khz

func (f Freq) Khz() int32

func (Freq) Next

func (f Freq) Next() Freq

func (Freq) Prev

func (f Freq) Prev() Freq

func (Freq) String

func (f Freq) String() string

type LatLng

type LatLng struct {
	Lat float64
	Lng float64
}

type Located

type Located interface {
	Location() LatLng
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func New

func New(api API) Plugin

func (*Plugin) Start

func (p *Plugin) Start(name, sig, desc *string) bool

func (*Plugin) Stop

func (p *Plugin) Stop()

type TSControl

type TSControl struct{}

type Wazzup

type Wazzup struct {
	ATCs []ATC
}

func ParseWazzup

func ParseWazzup(in string) (Wazzup, error)

func (Wazzup) FindATC

func (wz Wazzup) FindATC(ll LatLng, freq Freq) (ATC, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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