conf

package
v0.0.0-...-a6ce1d2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XDirection = iota
	YDirection
	ZDirection
)

Axis constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Arduino

type Arduino struct {
	Serial       string
	Motors       []*ArduinoMotor
	Servos       []*ArduinoServo
	ArduinoAccel []*ArduinoAccel
}

Arduino is an Arduino configuration

type ArduinoAccel

type ArduinoAccel struct {
	Name string
	Addr uint8
}

ArduinoAccel is an accelerometer configuration

type ArduinoMotor

type ArduinoMotor struct {
	Name      string
	Enable    int
	Direction [2]int
	PWM       int
}

ArduinoMotor is a set of pins for an Arduino motor

type ArduinoServo

type ArduinoServo struct {
	Name       string
	ControlPin int
}

ArduinoServo is an Arduino servo pinout

type Control

type Control struct {
	Directions []*Direction
}

Control contains the control settings for each direction

type Direction

type Direction struct {
	Axis          int
	Motors        []MotAng
	Stabilization string //TODO: change to *ArduinoAccel
}

Direction is the control settings for a certain direciton

type FullList

type FullList struct {
	Arr []interface{}
}

FullList is a list of all objects in the configuration file, generated by the conf parser

type LocalCamera

type LocalCamera struct {
	Name    string
	DevFile string
}

LocalCamera is a camera attached to the local computer

type MotAng

type MotAng struct {
	Name string
	Ang  float64
}

MotAng is a motor and an angle

type RemoteCamera

type RemoteCamera struct {
	Name    string
	Address *url.URL
}

RemoteCamera is a remotely connected camera

type Robot

type Robot struct {
	Motors  map[string]motor.Motor
	Accel   map[string]accelerometer.Accel
	Cameras map[string]interface{}
	Startup []func(*Robot) error
}

Robot is the thing

Jump to

Keyboard shortcuts

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