steering

package
v0.0.0-...-76dc376 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(rotationInDegree float64, stayEnabled bool) interface{}

NewMessage creates a new steering order

Types

type Actionner

type Actionner interface {
	types.Enablable
	Move(clockwise bool, speedInStepBySeconds uint32, duration time.Duration) error
}

Actionner is an interface of something that can be Enable(d)/Disable(d) and Move(d)

type Steering

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

Steering is the component driving the steering wheel through an Actionner

func New

func New(actionner Actionner) *Steering

New creates a new Steering component for a Actionner

func (*Steering) SetInputChan

func (m *Steering) SetInputChan(c chan interface{})

SetInputChan sets the channel where this component will be getting its steering order from

func (*Steering) SetPanicChan

func (m *Steering) SetPanicChan(c chan interface{})

SetPanicChan sets the channel where panics will be sent

func (Steering) Shutdown

func (m Steering) Shutdown()

Shutdown sets all the state to down and notify the handlers

func (Steering) Start

func (m Steering) Start()

Start the event loop of the Steering component

Jump to

Keyboard shortcuts

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