config

package
v0.0.0-...-46b8480 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Interactive bool

Runtime Config

View Source
var ManualFocus bool

Functions

This section is empty.

Types

type Camera

type Camera struct {
	MaxPanSpeed      int `yaml:"maxPanSpeed"`
	MinPanSpeed      int `yaml:"minPanSpeed"`
	DefaultPanSpeed  int `yaml:"defaultPanSpeed"`
	MinTiltSpeed     int `yaml:"minTiltSpeed"`
	MaxTiltSpeed     int `yaml:"maxTiltSpeed"`
	DefaultTiltSpeed int `yaml:"defaultTiltSpeed"`
	MaxZoomSpeed     int `yaml:"maxZoomSpeed"`
	MinZoomSpeed     int `yaml:"minZoomSpeed"`
	DefaultZoomSpeed int `yaml:"defaultZoomSpeed"`
}

type ConfigData

type ConfigData struct {
	Debug      bool `yaml:"debug"`
	Network    Network
	Controller Controller
	Camera     Camera
	Presets    Presets
}
var Config ConfigData

Config File

func (*ConfigData) Update

func (cfg *ConfigData) Update() error

type Controller

type Controller struct {
	DeadZones DeadZones `yaml:"deadZones"`
}

type DeadZones

type DeadZones struct {
	Low  float32 `yaml:"low"`
	High float32 `yaml:"high"`
}

type Network

type Network struct {
	IpAddress        string `yaml:"ipAddress"`
	ShortCmdPort     string `yaml:"shortCmdPort"`
	LongCmdPort      string `yaml:"longCmdPort"`
	UseShortCommands bool   `yaml:"useShortCommands"`
}

func (*Network) Port

func (n *Network) Port() string

type Preset

type Preset struct {
	Pan       int `yaml:"pan"`
	Tilt      int `yaml:"tilt"`
	Zoom      int `yaml:"zoom"`
	PanSpeed  int `yaml:"panSpeed"`
	TiltSpeed int `yaml:"tiltSpeed"`
}

type Presets

type Presets struct {
	PanSpeed  int    `yaml:"panSpeed"`
	TiltSpeed int    `yaml:"tiltSpeed"`
	A         Preset `yaml:"A"`
	B         Preset `yaml:"B"`
	X         Preset `yaml:"X"`
	Y         Preset `yaml:"Y"`
}

Jump to

Keyboard shortcuts

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