dashboard

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

Documentation

Index

Constants

View Source
const (
	NoGPSFix                = "NoGPSFix"
	InvalidGPSData          = "InvalidGPSData"
	SpeedTooLow             = "SpeedTooLow"
	HeadingErrorOutOfBounds = "HeadingErrorOutOfBounds"
	CorrectionAtLimit       = "CorrectionAtLimit"
)

Warning/Error leds

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(leds map[string]bool) interface{}

NewMessage creates a LED update message

Types

type Dashboard

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

Dashboard is the component that receives the alarms and warnings and enable or disable the corresponding LEDs

func New

func New() *Dashboard

New creates a new Dashboard component

func (Dashboard) GetDashboardInfoAction

func (d Dashboard) GetDashboardInfoAction() map[string]bool

GetDashboardInfoAction returns the current dashboard info

func (*Dashboard) RegisterMessageHandler

func (d *Dashboard) RegisterMessageHandler(message string, handler types.Enablable)

RegisterMessageHandler registers the handler for a particular message - there can only be one per message

func (*Dashboard) SetInputChan

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

SetInputChan sets the channel where the LED update messages are sent

func (*Dashboard) SetPanicChan

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

SetPanicChan sets the channel where the panics are sent

func (Dashboard) Shutdown

func (d Dashboard) Shutdown()

Shutdown sets all the state to down and notify the handlers

func (Dashboard) Start

func (d Dashboard) Start()

Start the event loop of the Dashboard component

Jump to

Keyboard shortcuts

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