Documentation ¶
Index ¶
- Constants
- func NewMessage(leds map[string]bool) interface{}
- type Dashboard
- func (d Dashboard) GetDashboardInfoAction() map[string]bool
- func (d *Dashboard) RegisterMessageHandler(message string, handler types.Enablable)
- func (d *Dashboard) SetInputChan(c chan interface{})
- func (d *Dashboard) SetPanicChan(c chan interface{})
- func (d Dashboard) Shutdown()
- func (d Dashboard) Start()
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 ¶
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 (Dashboard) GetDashboardInfoAction ¶
GetDashboardInfoAction returns the current dashboard info
func (*Dashboard) RegisterMessageHandler ¶
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
Click to show internal directories.
Click to hide internal directories.