ap100

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(course uint16) interface{}

NewMessage creates course update messages

Types

type AP100

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

AP100 is the component that send the course to an external device (via a sin/cos interface)

func New

func New(output Compass) *AP100

New creates a new AP100 component for a Compass

func (*AP100) SetInputChan

func (d *AP100) SetInputChan(c chan interface{})

SetInputChan sets the channel where this component will be listening to for the course updates

func (*AP100) SetPanicChan

func (d *AP100) SetPanicChan(c chan interface{})

SetPanicChan sets the channel where this component will send the panics

func (*AP100) Shutdown

func (d *AP100) Shutdown()

Shutdown sets all the state to down and notify the handlers

func (*AP100) Start

func (d *AP100) Start()

Start the event loop of the AP100 component

type Compass

type Compass interface {
	UpdateCourse(course uint16) error
}

Compass is something on which we can update the course (in degree)

Jump to

Keyboard shortcuts

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